mirror of
https://github.com/APercy/airutils
synced 2025-07-21 13:48:56 +02:00
fix
This commit is contained in:
parent
6213cfaa71
commit
3575ea26ad
@ -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…
Reference in New Issue
Block a user