From 5cdf23fb00ae257cd1d77b186cd40e889530d4f0 Mon Sep 17 00:00:00 2001 From: Jeija Date: Tue, 18 Dec 2012 16:20:24 +0100 Subject: Fix bug reported here: http://bit.ly/VOF35X --- mesecons_pistons/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 11389b3..57e944b 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -191,7 +191,7 @@ minetest.register_node("mesecons_pistons:piston_normal", { local pitch = placer:get_look_pitch() * (180 / math.pi) --placer pitch in degrees if pitch > 45 then --looking upwards 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"}) end end, @@ -443,4 +443,4 @@ minetest.register_craft({ {"mesecons_materials:glue"}, {"mesecons_pistons:piston_normal"}, } -}) \ No newline at end of file +}) -- cgit v1.2.3