summaryrefslogtreecommitdiff
path: root/mesecons_pistons
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_pistons')
-rw-r--r--mesecons_pistons/init.lua4
1 files 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
+})