From 945260fa299c2232da5cc143c0ef9065af2d46e4 Mon Sep 17 00:00:00 2001 From: kay27 Date: Thu, 3 Dec 2020 23:48:26 +0400 Subject: [PATCH] quick fix of attempt to index local 'node' (nil value) at mods/ENTITIES/mcl_mobs/api.lua:3392 --- mods/ENTITIES/mcl_mobs/api.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index be62cda619..986dc752fe 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3387,11 +3387,13 @@ local mob_step = function(self, dtime) end -- Add water flowing for mobs from mcl_item_entity - local p = self.object:get_pos() - local node = minetest.get_node_or_nil(p) - local nn = node.name - local def = minetest.registered_nodes[nn] - + local p, node, nn, def + p = self.object:get_pos() + node = minetest.get_node_or_nil(p) + if node then + nn = node.name + def = minetest.registered_nodes[nn] + end -- Move item around on flowing liquids if def and def.liquidtype == "flowing" then