extend user block fields check

This commit is contained in:
MihailRis
2024-10-03 16:08:40 +03:00
parent 0ad588fd33
commit ab53922474
6 changed files with 63 additions and 13 deletions
+3 -1
View File
@@ -26,7 +26,7 @@ inline constexpr uint FACE_PZ = 5;
/// complex hitboxes
inline constexpr uint BLOCK_AABB_GRID = 16;
inline constexpr size_t MAX_BLOCK_FIELDS_SIZE = 240;
inline constexpr size_t MAX_USER_BLOCK_FIELDS_SIZE = 240;
inline std::string DEFAULT_MATERIAL = "base:stone";
@@ -222,6 +222,8 @@ public:
~Block();
void cloneTo(Block& dst);
static bool isReservedBlockField(std::string_view view);
};
inline glm::ivec3 get_ground_direction(const Block& def, int rotation) {