cItem: Removed a warning emitted when creating an item from air
This commit is contained in:
parent
b522a9b262
commit
6af81c66e9
@ -54,8 +54,11 @@ public:
|
|||||||
m_Enchantments(a_Enchantments)
|
m_Enchantments(a_Enchantments)
|
||||||
{
|
{
|
||||||
if (!IsValidItem(m_ItemType))
|
if (!IsValidItem(m_ItemType))
|
||||||
|
{
|
||||||
|
if (m_ItemType != E_BLOCK_AIR)
|
||||||
{
|
{
|
||||||
LOGWARNING("%s: creating an invalid item type (%d), resetting to empty.", __FUNCTION__, a_ItemType);
|
LOGWARNING("%s: creating an invalid item type (%d), resetting to empty.", __FUNCTION__, a_ItemType);
|
||||||
|
}
|
||||||
Empty();
|
Empty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user