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)
|
function airutils.remove_inventory(self)
|
||||||
local inventory = airutils.get_inventory(self)
|
local inventory = airutils.get_inventory(self)
|
||||||
|
if inventory then
|
||||||
if inventory:is_empty("main") then
|
if inventory:is_empty("main") then
|
||||||
return minetest.remove_detached_inventory(self._inv_id)
|
return minetest.remove_detached_inventory(self._inv_id)
|
||||||
else
|
else
|
||||||
|
@ -108,6 +109,7 @@ function airutils.remove_inventory(self)
|
||||||
end
|
end
|
||||||
return minetest.remove_detached_inventory(self._inv_id)
|
return minetest.remove_detached_inventory(self._inv_id)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue