mirror of
				https://github.com/minetest-mods/mesecons.git
				synced 2025-11-04 12:55:29 +01:00 
			
		
		
		
	Same for sticky piston
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user