From 2cbe90902d91bb5af22c40a827595acda4e87866 Mon Sep 17 00:00:00 2001 From: Gael-de-Sailly Date: Mon, 17 Aug 2015 22:08:59 +0200 Subject: [PATCH] Fixed fatal error about mobs in unknown nodes --- mods/mobs/api.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index a46ea86a..c3e1db38 100755 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -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