1
0
spegling av https://github.com/minetest-mods/mesecons.git synced 2025-07-12 20:20:21 +02:00

Fix meta handling

This commit is contained in:
number Zero
2019-06-28 00:29:23 +03:00
förälder c2af1b2e67
incheckning 3eba0bfba9
3 ändrade filer med 8 tillägg och 6 borttagningar

Visa fil

@ -91,7 +91,7 @@ local piston_on = function(pos, node)
if not success then
return
end
minetest.set_node(pos, {param2 = node.param2, name = pistonspec.onname})
minetest.swap_node(pos, {param2 = node.param2, name = pistonspec.onname})
minetest.set_node(pusher_pos, {param2 = node.param2, name = pistonspec.pusher})
minetest.sound_play("piston_extend", {
pos = pos,
@ -104,7 +104,7 @@ end
local function piston_off(pos, node)
local pistonspec = get_pistonspec(node.name, "onname")
minetest.set_node(pos, {param2 = node.param2, name = pistonspec.offname})
minetest.swap_node(pos, {param2 = node.param2, name = pistonspec.offname})
piston_remove_pusher(pos, node, not pistonspec.sticky) -- allow that even in protected area
if not pistonspec.sticky then