mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 18:10:26 +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:
parent
a291222ea6
commit
af649c49f8
|
@ -964,7 +964,7 @@ function mobs:register_spawn(name, nodes, max_light, min_light, chance, active_o
|
||||||
|
|
||||||
-- are we spawning inside a solid node?
|
-- are we spawning inside a solid node?
|
||||||
local nod = minetest.get_node_or_nil(pos)
|
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
|
pos.y = pos.y + 1
|
||||||
nod = minetest.get_node_or_nil(pos)
|
nod = minetest.get_node_or_nil(pos)
|
||||||
if not nod or minetest.registered_nodes[nod.name].walkable == true then return end
|
if not nod or minetest.registered_nodes[nod.name].walkable == true then return end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user