From 3c61d57f6d7f627b32b4a8c2f461a8e01e7ac378 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 19 Apr 2011 17:09:45 +0300 Subject: item drop multiplication fix --- src/inventory.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index b6560063f..289b5bb2b 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -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") -- cgit v1.2.3