mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-29 18:16:27 -04:00
Fix modulo 2
This commit is contained in:
parent
0622f544a2
commit
db255e96f0
1 changed files with 2 additions and 2 deletions
|
@ -54,10 +54,10 @@ local function update_pane(pos)
|
|||
if count == 0 then
|
||||
swap(pos, node, name .. "_flat", any)
|
||||
elseif count == 1 then
|
||||
swap(pos, node, name .. "_flat", (any + 1) % 2)
|
||||
swap(pos, node, name .. "_flat", (any + 1) % 4)
|
||||
elseif count == 2 then
|
||||
if (c[0] and c[2]) or (c[1] and c[3]) then
|
||||
swap(pos, node, name .. "_flat", (any + 1) % 2)
|
||||
swap(pos, node, name .. "_flat", (any + 1) % 4)
|
||||
else
|
||||
swap(pos, node, name, 0)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue