This commit is contained in:
Alexsandro Percy 2022-03-23 20:18:30 -03:00
parent 6213cfaa71
commit 3575ea26ad
1 changed files with 16 additions and 14 deletions

View File

@ -90,6 +90,7 @@ end
function airutils.remove_inventory(self)
local inventory = airutils.get_inventory(self)
if inventory then
if inventory:is_empty("main") then
return minetest.remove_detached_inventory(self._inv_id)
else
@ -108,6 +109,7 @@ function airutils.remove_inventory(self)
end
return minetest.remove_detached_inventory(self._inv_id)
end
end
return false
end