1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 08:08:47 -05: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

@ -113,6 +113,10 @@ Gaming ideas:
- Random NPC traders. what else? - Random NPC traders. what else?
Game content:
-------------
- Glass blocks
Documentation: Documentation:
-------------- --------------
@ -163,6 +167,8 @@ TODO: Flowing water animation
SUGG: Draw cubes in inventory directly with 3D drawing commands, so that SUGG: Draw cubes in inventory directly with 3D drawing commands, so that
animating them is easier. animating them is easier.
SUGG: Option for enabling proper alpha channel for textures
Configuration: Configuration:
-------------- --------------

View File

@ -172,10 +172,10 @@ bool ChestNodeMetadata::nodeRemovalDisabled()
*/ */
InventoryList *list = m_inventory->getList("0"); InventoryList *list = m_inventory->getList("0");
if(list == NULL) if(list == NULL)
return true; return false;
if(list->getUsedSlots() == 0) if(list->getUsedSlots() == 0)
return true; return false;
return false; return true;
} }
/* /*