forked from luanti-org/minetest_game
		
	Dig upwards for papyrus and cactus
This commit is contained in:
		@@ -266,6 +266,19 @@ minetest.register_abm({
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- dig upwards
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
function default.dig_up(pos, node, digger)
 | 
			
		||||
	if digger == nil then return end
 | 
			
		||||
	local np = {x = pos.x, y = pos.y + 1, z = pos.z}
 | 
			
		||||
	local nn = minetest.get_node(np)
 | 
			
		||||
	if nn.name == node.name then
 | 
			
		||||
		minetest.node_dig(np, nn, digger)
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
-- Leafdecay
 | 
			
		||||
--
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user