1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-27 23:10:33 +02:00

Fixed fatal error about mobs in unknown nodes

This commit is contained in:
Gael-de-Sailly 2015-08-17 22:08:59 +02:00
parent cc7d29c444
commit 2cbe90902d

View File

@ -233,6 +233,9 @@ function mobs:register_mob(name, def)
local nod = minetest.get_node_or_nil(pos)
if nod then nod = nod.name else nod = "default:dirt" end
local nodef = minetest.registered_nodes[nod]
if not nodef then
nodef = {groups = {}}
end
local v = self.object:getvelocity()
if v.y > 0.1 then