1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

item drop multiplication fix

This commit is contained in:
Perttu Ahola 2011-04-19 17:09:45 +03:00
parent a7d36a50bb
commit 3c61d57f6d
3 changed files with 31 additions and 13 deletions

View file

@ -180,6 +180,16 @@ ServerActiveObject* CraftItem::createSAO(ServerEnvironment *env, u16 id, v3f pos
}
}
u16 CraftItem::getDropCount()
{
// Special cases
if(m_subname == "rat")
return 1;
// Default
else
return InventoryItem::getDropCount();
}
bool CraftItem::isCookable()
{
if(m_subname == "lump_of_iron")