mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-12 21:34:35 +01:00
Fix some maps not loading properly
This commit is contained in:
@@ -205,6 +205,12 @@ public class ResourceLoader {
|
|||||||
// Load group infos
|
// Load group infos
|
||||||
for (FloorInfo floor : GameData.getFloorInfos().values()) {
|
for (FloorInfo floor : GameData.getFloorInfos().values()) {
|
||||||
for (FloorGroupSimpleInfo simpleGroup : floor.getSimpleGroupList()) {
|
for (FloorGroupSimpleInfo simpleGroup : floor.getSimpleGroupList()) {
|
||||||
|
// Dont load "deprecated" groups
|
||||||
|
if (simpleGroup.isIsDelete()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get file from resource directory
|
||||||
File file = new File(LunarCore.getConfig().getResourceDir() + "/" + simpleGroup.getGroupPath());
|
File file = new File(LunarCore.getConfig().getResourceDir() + "/" + simpleGroup.getGroupPath());
|
||||||
if (!file.exists()) continue;
|
if (!file.exists()) continue;
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public class FloorInfo {
|
|||||||
@Getter
|
@Getter
|
||||||
public static class FloorGroupSimpleInfo {
|
public static class FloorGroupSimpleInfo {
|
||||||
private String GroupPath;
|
private String GroupPath;
|
||||||
|
private boolean IsDelete;
|
||||||
private int ID;
|
private int ID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user