Skip to content

Commit

Permalink
Don't load groups from main missions
Browse files Browse the repository at this point in the history
  • Loading branch information
Melledy committed Jun 19, 2024
1 parent b90d01b commit 88184f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/emu/lunarcore/data/ResourceLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ private static void loadFloorInfos() {
GroupInfo group = gson.fromJson(reader, GroupInfo.class);
group.setId(simpleGroup.getID());

// Hacky way to load only groups that arent required for main missions
if (group.getOwnerMainMissionID() > 0 && group.getOwnerMainMissionID() < 2000000) {
continue;
}

// Load groups into the floor info
floor.getGroupList().add(group);
floor.getGroups().put(simpleGroup.getID(), group);
} catch (Exception e) {
Expand Down

0 comments on commit 88184f6

Please sign in to comment.