Fix immutable lists

This commit is contained in:
AnimeGitB
2022-05-12 02:36:34 +09:30
committed by Melledy
parent b787c70cb0
commit f45e106b2a
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ public class HandlerBuyGoodsReq extends PacketHandler {
return;
}
List<ItemParamData> costs = sg.getCostItemList(); // Can this even be null?
List<ItemParamData> costs = new ArrayList<ItemParamData>(sg.getCostItemList()); // Can this even be null?
costs.add(new ItemParamData(202, sg.getScoin()));
costs.add(new ItemParamData(201, sg.getHcoin()));
costs.add(new ItemParamData(203, sg.getMcoin()));