mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 17:05:20 +01:00
Add iterable payItems methods
Shame they could never be fully generic, but oh well
This commit is contained in:
@@ -81,7 +81,7 @@ public class CombineManger extends BaseGameSystem {
|
||||
List<ItemParamData> material = new ArrayList<>(combineData.getMaterialItems());
|
||||
material.add(new ItemParamData(202, combineData.getScoinCost()));
|
||||
|
||||
boolean success = player.getInventory().payItems(material.toArray(new ItemParamData[0]), count, ActionReason.Combine);
|
||||
boolean success = player.getInventory().payItems(material, count, ActionReason.Combine);
|
||||
|
||||
// abort if not enough material
|
||||
if (!success) {
|
||||
|
||||
Reference in New Issue
Block a user