From 6af81c66e9aea6ecc5913266815e7e468872dee4 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 4 Aug 2013 16:06:28 +0200 Subject: cItem: Removed a warning emitted when creating an item from air --- source/Item.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/Item.h') 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(); } } -- cgit v1.2.3