unset item list when dropping inv
This commit is contained in:
parent
d202db00b7
commit
b3c34bd081
|
@ -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))
|
local p = vector.add(pos,vector.new(math.random() - 0.5, math.random()-0.5, math.random()-0.5))
|
||||||
minetest.add_item(p,it)
|
minetest.add_item(p,it)
|
||||||
end
|
end
|
||||||
|
ent._items = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local function on_remove(self,killer,oldf)
|
local function on_remove(self,killer,oldf)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user