summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-04 16:06:28 +0200
committermadmaxoft <github@xoft.cz>2013-08-04 16:06:28 +0200
commit6af81c66e9aea6ecc5913266815e7e468872dee4 (patch)
tree9d10d2c226c05229e86bf13c7a9c6f7e98de8392
parentIgnoring all .ini files in the MCServer folder. (diff)
downloadcuberite-6af81c66e9aea6ecc5913266815e7e468872dee4.tar
cuberite-6af81c66e9aea6ecc5913266815e7e468872dee4.tar.gz
cuberite-6af81c66e9aea6ecc5913266815e7e468872dee4.tar.bz2
cuberite-6af81c66e9aea6ecc5913266815e7e468872dee4.tar.lz
cuberite-6af81c66e9aea6ecc5913266815e7e468872dee4.tar.xz
cuberite-6af81c66e9aea6ecc5913266815e7e468872dee4.tar.zst
cuberite-6af81c66e9aea6ecc5913266815e7e468872dee4.zip
-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();
}
}