mirror of
				https://github.com/sys4-fr/server-nalc.git
				synced 2025-11-04 05:55:28 +01:00 
			
		
		
		
	Fixed a mistake in unknown node's check
- Mobs mod now check with correct values the being of the nodes its mobs spawn on
This commit is contained in:
		@@ -964,7 +964,7 @@ function mobs:register_spawn(name, nodes, max_light, min_light, chance, active_o
 | 
			
		||||
 | 
			
		||||
			-- are we spawning inside a solid node?
 | 
			
		||||
			local nod = minetest.get_node_or_nil(pos)
 | 
			
		||||
			if not nod or not minetest.registered_nodes[nod] or minetest.registered_nodes[nod.name].walkable == true then return end
 | 
			
		||||
			if not nod or not minetest.registered_nodes[nod.name] or minetest.registered_nodes[nod.name].walkable == true then return end
 | 
			
		||||
			pos.y = pos.y + 1
 | 
			
		||||
			nod = minetest.get_node_or_nil(pos)
 | 
			
		||||
			if not nod or minetest.registered_nodes[nod.name].walkable == true then return end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user