From 88184f6fb7c62374677d28a33c4f7e076c30b618 Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:13:21 -0700 Subject: [PATCH] Don't load groups from main missions --- src/main/java/emu/lunarcore/data/ResourceLoader.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/emu/lunarcore/data/ResourceLoader.java b/src/main/java/emu/lunarcore/data/ResourceLoader.java index f9601ef59..df3d29e02 100644 --- a/src/main/java/emu/lunarcore/data/ResourceLoader.java +++ b/src/main/java/emu/lunarcore/data/ResourceLoader.java @@ -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) {