Commit 28a8475c authored by ImmuState's avatar ImmuState Committed by Melledy
Browse files

Consume material.

parent a668bd6e
...@@ -145,7 +145,8 @@ public class ForgingManager { ...@@ -145,7 +145,8 @@ public class ForgingManager {
continue; continue;
} }
this.player.getInventory().removeItem(material.getItemId(), material.getCount() * req.getForgeCount()); GameItem item = this.player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(material.getItemId());
this.player.getInventory().removeItem(item, material.getCount() * req.getForgeCount());
} }
this.player.setMora(this.player.getMora() - forgeData.getScoinCost() * req.getForgeCount()); this.player.setMora(this.player.getMora() - forgeData.getScoinCost() * req.getForgeCount());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment