From 212f34db82c0a3ce5ee6dad3c45c3cc3ec9f8890 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 6 Apr 2011 01:42:37 +0300 Subject: [PATCH] fixed the bug of disabled removal of empty chests --- src/main.cpp | 6 ++++++ src/nodemetadata.cpp | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7ec54253..b5247b90 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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: -------------- diff --git a/src/nodemetadata.cpp b/src/nodemetadata.cpp index 8b21856d..be21622d 100644 --- a/src/nodemetadata.cpp +++ b/src/nodemetadata.cpp @@ -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; } /* -- 2.30.2