Consume material.

This commit is contained in:
ImmuState 2022-06-04 17:30:44 -07:00 committed by Melledy
parent a668bd6ec1
commit 28a8475cea

View File

@ -145,7 +145,8 @@ public class ForgingManager {
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());