mirror of
				https://github.com/minetest-mods/mesecons.git
				synced 2025-11-04 04:55:26 +01:00 
			
		
		
		
	Fix sticky piston duplicate bug
This commit is contained in:
		@@ -207,8 +207,8 @@ mesecon:register_on_signal_off(function(pos, node)
 | 
			
		||||
		and checknode.name ~= "default:lava_flowing"
 | 
			
		||||
		and not mesecon:is_mvps_stopper(checknode.name) then
 | 
			
		||||
		    minetest.env:set_node(pos, checknode)
 | 
			
		||||
		    mesecon:updatenode(pos)
 | 
			
		||||
		    --minetest.env:dig_node(pos)
 | 
			
		||||
		    minetest.env:remove_node(checkpos)
 | 
			
		||||
		    mesecon:updatenode(checkpos)
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	if node.name == "mesecons_pistons:piston_sticky" then
 | 
			
		||||
@@ -230,4 +230,4 @@ function mesecon:piston_get_direction(node)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
dofile(minetest.get_modpath("mesecons_pistons").."/pistons_down.lua")
 | 
			
		||||
dofile(minetest.get_modpath("mesecons_pistons").."/pistons_up.lua")
 | 
			
		||||
dofile(minetest.get_modpath("mesecons_pistons").."/pistons_up.lua")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user