mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-22 11:54:39 +01:00
Add a loadReader helper function to DataLoader
Also minor name changing on a few DataLoader methods
This commit is contained in:
@@ -30,7 +30,7 @@ public class ExpeditionSystem extends BaseGameSystem {
|
||||
}
|
||||
|
||||
public synchronized void load() {
|
||||
try (Reader fileReader = new InputStreamReader(DataLoader.load("ExpeditionReward.json"))) {
|
||||
try (Reader fileReader = DataLoader.loadReader("ExpeditionReward.json")) {
|
||||
getExpeditionRewardDataList().clear();
|
||||
List<ExpeditionRewardInfo> banners = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, ExpeditionRewardInfo.class).getType());
|
||||
if(banners.size() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user