From b3c34bd08167bfad7a4d1c50ea4eb5a3d29b640f Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 6 Oct 2022 20:53:52 +0200 Subject: [PATCH] unset item list when dropping inv --- mods/ENTITIES/mcl_entity_invs/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ENTITIES/mcl_entity_invs/init.lua b/mods/ENTITIES/mcl_entity_invs/init.lua index 63e134beba..6912228323 100644 --- a/mods/ENTITIES/mcl_entity_invs/init.lua +++ b/mods/ENTITIES/mcl_entity_invs/init.lua @@ -81,6 +81,7 @@ local function drop_inv(ent) local p = vector.add(pos,vector.new(math.random() - 0.5, math.random()-0.5, math.random()-0.5)) minetest.add_item(p,it) end + ent._items = nil end local function on_remove(self,killer,oldf)