summaryrefslogtreecommitdiffstats
path: root/source/Item.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-07 15:46:43 +0200
committermadmaxoft <github@xoft.cz>2013-08-07 15:46:43 +0200
commit3d027a8928ee423ee6a475637752bd50a5f0d44c (patch)
tree82c6993605326422e188410dda8b897a28ce16ef /source/Item.h
parentMerge pull request #47 from tonibm19/master (diff)
parentDebuggers plugin: added the "/spidey" command. (diff)
downloadcuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.gz
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.bz2
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.lz
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.xz
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.zst
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.zip
Diffstat (limited to 'source/Item.h')
-rw-r--r--source/Item.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Item.h b/source/Item.h
index fc54da51d..fee861050 100644
--- a/source/Item.h
+++ b/source/Item.h
@@ -55,7 +55,10 @@ public:
{
if (!IsValidItem(m_ItemType))
{
- LOGWARNING("%s: creating an invalid item type (%d), resetting to empty.", __FUNCTION__, a_ItemType);
+ if (m_ItemType != E_BLOCK_AIR)
+ {
+ LOGWARNING("%s: creating an invalid item type (%d), resetting to empty.", __FUNCTION__, a_ItemType);
+ }
Empty();
}
}