mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
fixed the bug of disabled removal of empty chests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user