mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-07 02:26:43 +01:00
Fix grid parsing
now compatiable with Yukki's resources!
This commit is contained in:
@@ -427,6 +427,7 @@ public class SceneScriptManager {
|
||||
|
||||
try {
|
||||
this.groupGrids = JsonUtils.loadToList(path, Grid.class);
|
||||
this.groupGrids.forEach(Grid::load);
|
||||
} catch (IOException ignored) {
|
||||
Grasscutter.getLogger().error("Scene {} unable to load grid file.", getScene().getId());
|
||||
} catch (Exception e) {
|
||||
@@ -552,7 +553,7 @@ public class SceneScriptManager {
|
||||
this.groupGrids = new ArrayList<>();
|
||||
for (int i = 0; i < 6; i++) {
|
||||
this.groupGrids.add(new Grid());
|
||||
this.groupGrids.get(i).grid = groupPositions.get(i);
|
||||
this.groupGrids.get(i).gridMap = groupPositions.get(i);
|
||||
}
|
||||
|
||||
try (FileWriter file = new FileWriter(path.toFile())) {
|
||||
|
||||
Reference in New Issue
Block a user