mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
fix block model change wrapper reaction
This commit is contained in:
parent
b0ecfd5add
commit
6d6d38c218
3 changed files with 19 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue