summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-12-18 16:21:41 +0100
committerJeija <norrepli@gmail.com>2012-12-18 16:21:41 +0100
commitf6ef7b005d4ca6d9b26aa5e60909713178184a73 (patch)
tree7461874c5e5ab225f427417a445e52618cd21748
parent5cdf23fb00ae257cd1d77b186cd40e889530d4f0 (diff)
downloadmesecons-f6ef7b005d4ca6d9b26aa5e60909713178184a73.tar
mesecons-f6ef7b005d4ca6d9b26aa5e60909713178184a73.tar.gz
mesecons-f6ef7b005d4ca6d9b26aa5e60909713178184a73.tar.bz2
mesecons-f6ef7b005d4ca6d9b26aa5e60909713178184a73.tar.xz
mesecons-f6ef7b005d4ca6d9b26aa5e60909713178184a73.zip
Same for sticky piston
-rw-r--r--mesecons_pistons/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua
index 57e944b..44b9095 100644
--- a/mesecons_pistons/init.lua
+++ b/mesecons_pistons/init.lua
@@ -214,7 +214,7 @@ minetest.register_node("mesecons_pistons:piston_sticky", {
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_sticky"})
- elseif pitch < 45 then --looking downwards
+ elseif pitch < -45 then --looking downwards
minetest.env:add_node(pos, {name="mesecons_pistons:piston_up_sticky"})
end
end,