Skip to content
Snippets Groups Projects
Commit f6ef7b00 authored by Jeija's avatar Jeija
Browse files

Same for sticky piston

parent 5cdf23fb
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment