1
0

cItem: Removed a warning emitted when creating an item from air

This commit is contained in:
madmaxoft 2013-08-04 16:06:28 +02:00
parent b522a9b262
commit 6af81c66e9

View File

@ -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();
}
}