forked from MineClone5/MineClone5
Fix protected pistons work
This commit is contained in:
parent
0b17a79008
commit
5f25f0d1a6
|
@ -138,8 +138,6 @@ local function piston_off(pos, node)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function piston_orientate(pos, placer)
|
local function piston_orientate(pos, placer)
|
||||||
mesecon.mvps_set_owner(pos, placer)
|
|
||||||
|
|
||||||
-- not placed by player
|
-- not placed by player
|
||||||
if not placer then return end
|
if not placer then return end
|
||||||
|
|
||||||
|
@ -153,6 +151,7 @@ local function piston_orientate(pos, placer)
|
||||||
elseif pitch < -55 then
|
elseif pitch < -55 then
|
||||||
minetest.add_node(pos, {name=pistonspec.piston_down})
|
minetest.add_node(pos, {name=pistonspec.piston_down})
|
||||||
end
|
end
|
||||||
|
mesecon.mvps_set_owner(pos, placer)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue