mirror of
https://github.com/APercy/airutils.git
synced 2025-03-22 02:42:20 +00:00
fix
This commit is contained in:
parent
6213cfaa71
commit
3575ea26ad
1 changed files with 16 additions and 14 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue