fix caves issues & add block 'surface-replacement' property

This commit is contained in:
MihailRis
2024-10-08 22:37:41 +03:00
parent c022e11c3b
commit b4578cfb87
7 changed files with 115 additions and 18 deletions
+5
View File
@@ -181,6 +181,9 @@ public:
/// @brief Block script name in blocks/ without extension
std::string scriptName = name.substr(name.find(':') + 1);
/// @brief Block will be used instead of this if generated on surface
std::string surfaceReplacement = name;
/// @brief Default block layout will be used by hud.open_block(...)
std::string uiLayout = name;
@@ -214,6 +217,8 @@ public:
/// @brief picking item integer id
itemid_t pickingItem = 0;
blockid_t surfaceReplacement = 0;
} rt {};
Block(const std::string& name);