mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 09:25:06 +01:00
Fix immutable lists
This commit is contained in:
@@ -696,7 +696,7 @@ public class InventoryManager {
|
||||
}
|
||||
|
||||
// Pay materials and mora if possible
|
||||
List<ItemParamData> costs = proudSkill.getCostItems(); // Can this be null?
|
||||
List<ItemParamData> costs = new ArrayList<ItemParamData>(proudSkill.getCostItems()); // Can this be null?
|
||||
if (proudSkill.getCoinCost() > 0) {
|
||||
costs.add(new ItemParamData(202, proudSkill.getCoinCost()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user