X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FBlockTypeRegistry.hpp;h=38afac4b6be98b18a8ad2273d284bf5e7a18f14d;hb=dbfcb12348b80e2582f710acb1e4ed0011889ba2;hp=0a1ebf0ebc4f31a369fdc5eada961d12eef4d093;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/world/BlockTypeRegistry.hpp b/src/world/BlockTypeRegistry.hpp index 0a1ebf0..38afac4 100644 --- a/src/world/BlockTypeRegistry.hpp +++ b/src/world/BlockTypeRegistry.hpp @@ -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: