mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-01 14:17:29 +01:00
Correct node data update condition
This commit is contained in:
parent
567af6377c
commit
9d4cebdab0
@ -193,7 +193,7 @@ local function update_redstone_wire(orig, update_neighbor)
|
||||
end
|
||||
local node = core.get_node(orig)
|
||||
local power = math.floor(node.param2 / 4)
|
||||
if node.name ~= connections[1] or node.param2 ~= connections[2] + power * 16 then
|
||||
if node.name ~= connections[1] or node.param2 ~= connections[2] + power * 4 then
|
||||
node.name = connections[1]
|
||||
node.param2 = connections[2] + power * 4
|
||||
core.set_node(orig, node)
|
||||
|
Loading…
Reference in New Issue
Block a user