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?
|
- 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:
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
@ -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;
|
|
||||||
if(list->getUsedSlots() == 0)
|
|
||||||
return true;
|
|
||||||
return false;
|
return false;
|
||||||
|
if(list->getUsedSlots() == 0)
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user