X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FBlockTypeRegistry.hpp;h=38afac4b6be98b18a8ad2273d284bf5e7a18f14d;hb=ad7cf72ed47c39640d5588ba53386e090289b4d1;hp=0a1ebf0ebc4f31a369fdc5eada961d12eef4d093;hpb=e872614d387c4bfc3afb04bcc7cba3d9b8f3954b;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: