mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-27 02:40:18 +01:00
Fix bug reported here: http://bit.ly/VOF35X
This commit is contained in:
parent
e9e1006656
commit
5cdf23fb00
@ -191,7 +191,7 @@ minetest.register_node("mesecons_pistons:piston_normal", {
|
|||||||
local pitch = placer:get_look_pitch() * (180 / math.pi) --placer pitch in degrees
|
local pitch = placer:get_look_pitch() * (180 / math.pi) --placer pitch in degrees
|
||||||
if pitch > 45 then --looking upwards
|
if pitch > 45 then --looking upwards
|
||||||
minetest.env:add_node(pos, {name="mesecons_pistons:piston_down_normal"})
|
minetest.env:add_node(pos, {name="mesecons_pistons:piston_down_normal"})
|
||||||
elseif pitch < 45 then --looking downwards
|
elseif pitch < -45 then --looking downwards
|
||||||
minetest.env:add_node(pos, {name="mesecons_pistons:piston_up_normal"})
|
minetest.env:add_node(pos, {name="mesecons_pistons:piston_up_normal"})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user