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

@ -54,8 +54,11 @@ public:
m_Enchantments(a_Enchantments)
{
if (!IsValidItem(m_ItemType))
{
if (m_ItemType != E_BLOCK_AIR)
{
LOGWARNING("%s: creating an invalid item type (%d), resetting to empty.", __FUNCTION__, a_ItemType);
}
Empty();
}
}