Block.scriptName, ItemDef.scriptName

This commit is contained in:
MihailRis
2024-01-18 04:41:35 +03:00
parent 9119caca65
commit b12d242335
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -81,7 +81,7 @@ public:
std::vector<glm::vec3> modelExtraPoints = {}; //initially made for tetragons
std::vector<UVRegion> modelUVs = {}; // boxes' tex-UVs also there
uint8_t emission[4] {0, 0, 0, 0};
unsigned char drawGroup = 0;
ubyte drawGroup = 0;
BlockModel model = BlockModel::block;
bool lightPassing = false;
bool skyLightPassing = false;
@@ -95,6 +95,7 @@ public:
AABB hitbox;
BlockRotProfile rotations;
std::string pickingItem = name+BLOCK_ITEM_SUFFIX;
std::string scriptName = name.substr(name.find(':')+1);
struct {
blockid_t id;