mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-12 13:24:36 +01:00
Fix some maps not loading properly
This commit is contained in:
@@ -205,6 +205,12 @@ public class ResourceLoader {
|
||||
// Load group infos
|
||||
for (FloorInfo floor : GameData.getFloorInfos().values()) {
|
||||
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());
|
||||
if (!file.exists()) continue;
|
||||
|
||||
|
||||
@@ -88,6 +88,7 @@ public class FloorInfo {
|
||||
@Getter
|
||||
public static class FloorGroupSimpleInfo {
|
||||
private String GroupPath;
|
||||
private boolean IsDelete;
|
||||
private int ID;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user