]> git.localhorst.tv Git - blank.git/blobdiff - src/world/BlockTypeRegistry.hpp
special treatment for players
[blank.git] / src / world / BlockTypeRegistry.hpp
index 0a1ebf0ebc4f31a369fdc5eada961d12eef4d093..38afac4b6be98b18a8ad2273d284bf5e7a18f14d 100644 (file)
@@ -19,6 +19,9 @@ public:
        size_t Size() const noexcept { return types.size(); }
 
        BlockType &operator [](Block::Type id) { return types[id]; }
+       const BlockType &operator [](Block::Type id) const { return types[id]; }
+
+       BlockType &Get(Block::Type id) { return types[id]; }
        const BlockType &Get(Block::Type id) const { return types[id]; }
 
 private: