fix block model change wrapper reaction

This commit is contained in:
MihailRis 2025-12-20 22:33:47 +03:00
parent b0ecfd5add
commit 6d6d38c218
3 changed files with 19 additions and 7 deletions

View file

@ -47,7 +47,8 @@ static int l_set_faces(lua::State* L) {
}
} else {
auto texture = lua::require_string(L, 2 + i);;
if ((wrapper->cullingBits & (1 << i)) == 0x0 || wrapper->textureFaces[i] != texture) {
if ((wrapper->cullingBits & (1 << i)) == 0x0
|| wrapper->textureFaces[i] != texture) {
wrapper->cullingBits |= (1 << i);
wrapper->textureFaces[i] = texture;
}