mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 14:47:44 +00:00
Consume material.
This commit is contained in:
parent
8840f22bba
commit
8a3c25ff8e
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user