1
0
Fork 0
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:
Perttu Ahola 2011-04-06 01:42:37 +03:00
parent 5b72b22409
commit 212f34db82
2 changed files with 9 additions and 3 deletions

View file

@ -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;
}
/*