unset item list when dropping inv

This commit is contained in:
cora 2022-10-06 20:53:52 +02:00
parent d202db00b7
commit b3c34bd081
1 changed files with 1 additions and 0 deletions

View File

@ -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)