mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 17:05:20 +01:00
Add a loadReader helper function to DataLoader
Also minor name changing on a few DataLoader methods
This commit is contained in:
@@ -39,7 +39,7 @@ public class CombineManger extends BaseGameSystem {
|
||||
|
||||
public static void initialize() {
|
||||
// Read the data we need for strongbox.
|
||||
try (Reader fileReader = new InputStreamReader(DataLoader.load("ReliquaryDecompose.json"))) {
|
||||
try (Reader fileReader = DataLoader.loadReader("ReliquaryDecompose.json")) {
|
||||
List<ReliquaryDecomposeEntry> decomposeEntries = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, ReliquaryDecomposeEntry.class).getType());
|
||||
|
||||
for (ReliquaryDecomposeEntry entry : decomposeEntries) {
|
||||
|
||||
Reference in New Issue
Block a user