mirror of
https://github.com/APercy/automobiles_pck
synced 2025-09-04 19:16:23 +02:00
fix
This commit is contained in:
parent
4904a7771d
commit
6babb3e907
@ -85,6 +85,7 @@ end
|
||||
|
||||
function automobiles_lib.remove_inventory(self)
|
||||
local inventory = automobiles_lib.get_inventory(self)
|
||||
if inventory then
|
||||
if inventory:is_empty("main") then
|
||||
return minetest.remove_detached_inventory(self._inv_id)
|
||||
else
|
||||
@ -103,6 +104,7 @@ function automobiles_lib.remove_inventory(self)
|
||||
end
|
||||
return minetest.remove_detached_inventory(self._inv_id)
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user