mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Vertical pistons now save owner meta
This commit is contained in:
parent
98cf3b7f7a
commit
0580b14310
@ -138,8 +138,6 @@ local function piston_off(pos, node)
|
||||
end
|
||||
|
||||
local function piston_orientate(pos, placer)
|
||||
mesecon.mvps_set_owner(pos, placer)
|
||||
|
||||
-- not placed by player
|
||||
if not placer then return end
|
||||
|
||||
@ -153,6 +151,9 @@ local function piston_orientate(pos, placer)
|
||||
elseif pitch < -55 then
|
||||
minetest.add_node(pos, {name=pistonspec.piston_down})
|
||||
end
|
||||
|
||||
-- set owner meta after setting node, or it will not keep
|
||||
mesecon.mvps_set_owner(pos, placer)
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user