mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
Fixed fatal error about mobs in unknown nodes
This commit is contained in:
parent
cc7d29c444
commit
2cbe90902d
@ -233,6 +233,9 @@ function mobs:register_mob(name, def)
|
|||||||
local nod = minetest.get_node_or_nil(pos)
|
local nod = minetest.get_node_or_nil(pos)
|
||||||
if nod then nod = nod.name else nod = "default:dirt" end
|
if nod then nod = nod.name else nod = "default:dirt" end
|
||||||
local nodef = minetest.registered_nodes[nod]
|
local nodef = minetest.registered_nodes[nod]
|
||||||
|
if not nodef then
|
||||||
|
nodef = {groups = {}}
|
||||||
|
end
|
||||||
|
|
||||||
local v = self.object:getvelocity()
|
local v = self.object:getvelocity()
|
||||||
if v.y > 0.1 then
|
if v.y > 0.1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user