1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-06-30 07:30:22 +02: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:
LeMagnesium 2015-03-26 20:33:40 +01:00
parent a291222ea6
commit af649c49f8

View File

@ -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