mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 14:24:37 +01:00
Don't load groups from main missions
This commit is contained in:
@@ -247,6 +247,12 @@ public class ResourceLoader {
|
|||||||
GroupInfo group = gson.fromJson(reader, GroupInfo.class);
|
GroupInfo group = gson.fromJson(reader, GroupInfo.class);
|
||||||
group.setId(simpleGroup.getID());
|
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.getGroupList().add(group);
|
||||||
floor.getGroups().put(simpleGroup.getID(), group);
|
floor.getGroups().put(simpleGroup.getID(), group);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user