mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fixed the bug of disabled removal of empty chests
This commit is contained in:
parent
5b72b22409
commit
212f34db82
2 changed files with 9 additions and 3 deletions
|
@ -172,10 +172,10 @@ bool ChestNodeMetadata::nodeRemovalDisabled()
|
|||
*/
|
||||
InventoryList *list = m_inventory->getList("0");
|
||||
if(list == NULL)
|
||||
return true;
|
||||
return false;
|
||||
if(list->getUsedSlots() == 0)
|
||||
return true;
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue