forked from Mirrorlandia_minetest/minetest
fixed the bug of disabled removal of empty chests
This commit is contained in:
parent
5b72b22409
commit
212f34db82
@ -113,6 +113,10 @@ Gaming ideas:
|
||||
|
||||
- Random NPC traders. what else?
|
||||
|
||||
Game content:
|
||||
-------------
|
||||
- Glass blocks
|
||||
|
||||
Documentation:
|
||||
--------------
|
||||
|
||||
@ -163,6 +167,8 @@ TODO: Flowing water animation
|
||||
SUGG: Draw cubes in inventory directly with 3D drawing commands, so that
|
||||
animating them is easier.
|
||||
|
||||
SUGG: Option for enabling proper alpha channel for textures
|
||||
|
||||
Configuration:
|
||||
--------------
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user