From 4403dcf26925d80ab346956f462fa3d897c2f09c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 26 Feb 2024 22:12:10 +0100 Subject: [PATCH 01/11] init --- .../java/at/hannibal2/skyhanni/SkyHanniMod.kt | 2 + .../config/features/dev/DevConfig.java | 5 +++ .../features/dev/HideFarEntitiesConfig.java | 18 +++++++++ .../skyhanni/features/misc/HideFarEntities.kt | 38 +++++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java create mode 100644 src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt index aba1966f470b..d2127ab1e430 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt @@ -251,6 +251,7 @@ import at.hannibal2.skyhanni.features.misc.ExpOrbsOnGroundHider import at.hannibal2.skyhanni.features.misc.FixGhostEntities import at.hannibal2.skyhanni.features.misc.FixNEUHeavyPearls import at.hannibal2.skyhanni.features.misc.HideArmor +import at.hannibal2.skyhanni.features.misc.HideFarEntities import at.hannibal2.skyhanni.features.misc.InGameDateDisplay import at.hannibal2.skyhanni.features.misc.JoinCrystalHollows import at.hannibal2.skyhanni.features.misc.LesserOrbHider @@ -754,6 +755,7 @@ class SkyHanniMod { loadModule(SkillProgress) loadModule(SkillTooltip()) loadModule(QuiverNotification) + loadModule(HideFarEntities()) init() diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java index 89170c027faa..214450f41063 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java @@ -59,4 +59,9 @@ public class DevConfig { @Category(name = "Minecraft Console", desc = "Minecraft Console Settings") public MinecraftConsoleConfig minecraftConsoles = new MinecraftConsoleConfig(); + @ConfigOption(name = "Hide Far Entities", desc = "") + @Accordion + @Expose + public HideFarEntitiesConfig hideFarEntities = new HideFarEntitiesConfig(); + } diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java new file mode 100644 index 000000000000..b462002b5145 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java @@ -0,0 +1,18 @@ +package at.hannibal2.skyhanni.config.features.dev; + +import com.google.gson.annotations.Expose; +import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; +import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider; +import io.github.moulberry.moulconfig.annotations.ConfigOption; + +public class HideFarEntitiesConfig { + @Expose + @ConfigOption(name = "Enabled", desc = "Hide all entities from rendering except the nearest ones.") + @ConfigEditorBoolean + public boolean enabled = false; + + @Expose + @ConfigOption(name = "Amount", desc = "Keep showing this amount of nearest entities.") + @ConfigEditorSlider(minValue = 5f, maxValue = 150f, minStep = 5f) + public float amount = 50f; +} diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt new file mode 100644 index 000000000000..9303014b243f --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt @@ -0,0 +1,38 @@ +package at.hannibal2.skyhanni.features.misc + +import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.events.CheckRenderEntityEvent +import at.hannibal2.skyhanni.events.LorenzTickEvent +import at.hannibal2.skyhanni.utils.CollectionUtils.sorted +import at.hannibal2.skyhanni.utils.EntityUtils +import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer +import at.hannibal2.skyhanni.utils.LorenzUtils +import net.minecraftforge.fml.common.eventhandler.SubscribeEvent + +class HideFarEntities { + private val config get() = SkyHanniMod.feature.dev.hideFarEntities + + private var ignored = emptyList() + + @SubscribeEvent + fun onTick(event: LorenzTickEvent) { + if (isEnabled()) { + val min = config.amount.toInt().coerceAtLeast(1) + ignored = EntityUtils.getAllEntities() + .map { it to it.distanceToPlayer() } + .toMap() + .sorted().keys.drop(min) + .map { it.entityId } + + } + } + + @SubscribeEvent + fun onCheckRender(event: CheckRenderEntityEvent<*>) { + if (isEnabled() && event.entity.entityId in ignored) { + event.cancel() + } + } + + fun isEnabled() = LorenzUtils.inSkyBlock && config.enabled +} From d5ba41c6ce70657ad08532f58a20f872828a219c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 10 Mar 2024 00:04:50 +0100 Subject: [PATCH 02/11] changed float to int --- .../skyhanni/config/features/dev/HideFarEntitiesConfig.java | 4 ++-- .../at/hannibal2/skyhanni/features/misc/HideFarEntities.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java index b462002b5145..fa98b05564b6 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java @@ -13,6 +13,6 @@ public class HideFarEntitiesConfig { @Expose @ConfigOption(name = "Amount", desc = "Keep showing this amount of nearest entities.") - @ConfigEditorSlider(minValue = 5f, maxValue = 150f, minStep = 5f) - public float amount = 50f; + @ConfigEditorSlider(minValue = 5, maxValue = 150, minStep = 5) + public int amount = 50; } diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt index 9303014b243f..6157a63b47c8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt @@ -17,7 +17,7 @@ class HideFarEntities { @SubscribeEvent fun onTick(event: LorenzTickEvent) { if (isEnabled()) { - val min = config.amount.toInt().coerceAtLeast(1) + val min = config.amount.coerceAtLeast(1) ignored = EntityUtils.getAllEntities() .map { it to it.distanceToPlayer() } .toMap() From a227c8effdbf0082bdede2f57ac43ba33fc21cd1 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 10 Mar 2024 16:21:55 +0100 Subject: [PATCH 03/11] added min distance check, better variable names, better default values. --- .../config/features/dev/HideFarEntitiesConfig.java | 11 ++++++++--- .../skyhanni/features/misc/HideFarEntities.kt | 6 ++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java index fa98b05564b6..3e73d566afd7 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java @@ -12,7 +12,12 @@ public class HideFarEntitiesConfig { public boolean enabled = false; @Expose - @ConfigOption(name = "Amount", desc = "Keep showing this amount of nearest entities.") - @ConfigEditorSlider(minValue = 5, maxValue = 150, minStep = 5) - public int amount = 50; + @ConfigOption(name = "Min Distance", desc = "Always shows mobs that are at least that close to the player.") + @ConfigEditorSlider(minValue = 3, maxValue = 30, minStep = 1) + public int minDistance = 10; + + @Expose + @ConfigOption(name = "Max Amount", desc = "Not showing more than this amount of nearest entities.") + @ConfigEditorSlider(minValue = 1, maxValue = 150, minStep = 1) + public int maxAmount = 30; } diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt index 6157a63b47c8..9061335d07cd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt @@ -17,11 +17,13 @@ class HideFarEntities { @SubscribeEvent fun onTick(event: LorenzTickEvent) { if (isEnabled()) { - val min = config.amount.coerceAtLeast(1) + val maxAmount = config.maxAmount.coerceAtLeast(1) + val minDistance = config.minDistance.coerceAtLeast(3) ignored = EntityUtils.getAllEntities() .map { it to it.distanceToPlayer() } .toMap() - .sorted().keys.drop(min) + .filter { it.value > minDistance } + .sorted().keys.drop(maxAmount) .map { it.entityId } } From 74e72294df3e45eb7bfe0fde450b56f8e09f45c1 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 14 Mar 2024 22:26:52 +0100 Subject: [PATCH 04/11] "O(n)".replace('n', '1') --- .../at/hannibal2/skyhanni/features/misc/HideFarEntities.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt index 9061335d07cd..41f2980c3285 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt @@ -12,7 +12,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class HideFarEntities { private val config get() = SkyHanniMod.feature.dev.hideFarEntities - private var ignored = emptyList() + private var ignored = emptySet() @SubscribeEvent fun onTick(event: LorenzTickEvent) { @@ -24,7 +24,7 @@ class HideFarEntities { .toMap() .filter { it.value > minDistance } .sorted().keys.drop(maxAmount) - .map { it.entityId } + .map { it.entityId }.toSet() } } From fb9a615a56355c3be47007eb185811b83db59848 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 14 Mar 2024 22:33:25 +0100 Subject: [PATCH 05/11] early return --- .../skyhanni/features/misc/HideFarEntities.kt | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt index 41f2980c3285..e45a0f9482d9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt @@ -16,17 +16,17 @@ class HideFarEntities { @SubscribeEvent fun onTick(event: LorenzTickEvent) { - if (isEnabled()) { - val maxAmount = config.maxAmount.coerceAtLeast(1) - val minDistance = config.minDistance.coerceAtLeast(3) - ignored = EntityUtils.getAllEntities() - .map { it to it.distanceToPlayer() } - .toMap() - .filter { it.value > minDistance } - .sorted().keys.drop(maxAmount) - .map { it.entityId }.toSet() + if (!isEnabled()) return - } + val maxAmount = config.maxAmount.coerceAtLeast(1) + val minDistance = config.minDistance.coerceAtLeast(3) + + ignored = EntityUtils.getAllEntities() + .map { it to it.distanceToPlayer() } + .toMap() + .filter { it.value > minDistance } + .sorted().keys.drop(maxAmount) + .map { it.entityId }.toSet() } @SubscribeEvent From 77c933d925f6c79b7a4e3854ada44524b3a8194a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 21 Mar 2024 22:03:09 +0100 Subject: [PATCH 06/11] Update src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> --- .../hannibal2/skyhanni/features/misc/HideFarEntities.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt index e45a0f9482d9..127862021283 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt @@ -22,11 +22,10 @@ class HideFarEntities { val minDistance = config.minDistance.coerceAtLeast(3) ignored = EntityUtils.getAllEntities() - .map { it to it.distanceToPlayer() } - .toMap() - .filter { it.value > minDistance } - .sorted().keys.drop(maxAmount) - .map { it.entityId }.toSet() + .map { it.entityId to it.distanceToPlayer() } + .filter { it.second > minDistance } + .sortedBy { it.second }.drop(maxAmount) + .map { it.first }.toSet() } @SubscribeEvent From 54ace656ef3247afb505dfe3fbc090b968fb09d3 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 21 Mar 2024 22:07:25 +0100 Subject: [PATCH 07/11] moving from dev to misc --- .../at/hannibal2/skyhanni/config/features/dev/DevConfig.java | 5 ----- .../config/features/{dev => misc}/HideFarEntitiesConfig.java | 2 +- .../hannibal2/skyhanni/config/features/misc/MiscConfig.java | 5 +++++ .../at/hannibal2/skyhanni/features/misc/HideFarEntities.kt | 3 +-- 4 files changed, 7 insertions(+), 8 deletions(-) rename src/main/java/at/hannibal2/skyhanni/config/features/{dev => misc}/HideFarEntitiesConfig.java (94%) diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java index 0a2ba9dddd31..3b5200c39c89 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DevConfig.java @@ -64,9 +64,4 @@ public class DevConfig { @Category(name = "Minecraft Console", desc = "Minecraft Console Settings") public MinecraftConsoleConfig minecraftConsoles = new MinecraftConsoleConfig(); - @ConfigOption(name = "Hide Far Entities", desc = "") - @Accordion - @Expose - public HideFarEntitiesConfig hideFarEntities = new HideFarEntitiesConfig(); - } diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java similarity index 94% rename from src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java rename to src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java index 3e73d566afd7..96a1d562823d 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/dev/HideFarEntitiesConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java @@ -1,4 +1,4 @@ -package at.hannibal2.skyhanni.config.features.dev; +package at.hannibal2.skyhanni.config.features.misc; import com.google.gson.annotations.Expose; import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java index bce2bbaf2b92..bdb20b1c72f3 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java @@ -250,4 +250,9 @@ public class MiscConfig { @ConfigEditorBoolean @FeatureToggle public boolean fixGhostEntities = true; + + @ConfigOption(name = "Hide Far Entities", desc = "") + @Accordion + @Expose + public HideFarEntitiesConfig hideFarEntities = new HideFarEntitiesConfig(); } diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt index 127862021283..0cd395e16705 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt @@ -3,14 +3,13 @@ package at.hannibal2.skyhanni.features.misc import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.CheckRenderEntityEvent import at.hannibal2.skyhanni.events.LorenzTickEvent -import at.hannibal2.skyhanni.utils.CollectionUtils.sorted import at.hannibal2.skyhanni.utils.EntityUtils import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer import at.hannibal2.skyhanni.utils.LorenzUtils import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class HideFarEntities { - private val config get() = SkyHanniMod.feature.dev.hideFarEntities + private val config get() = SkyHanniMod.feature.misc.hideFarEntities private var ignored = emptySet() From a290fb22f902360a4914736e7429ba9628acf585 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 21 Mar 2024 22:14:01 +0100 Subject: [PATCH 08/11] hide in garden --- .../config/features/misc/HideFarEntitiesConfig.java | 6 ++++++ .../at/hannibal2/skyhanni/features/misc/HideFarEntities.kt | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java index 96a1d562823d..73b5ac2a8c0c 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.config.features.misc; +import at.hannibal2.skyhanni.config.FeatureToggle; import com.google.gson.annotations.Expose; import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider; @@ -20,4 +21,9 @@ public class HideFarEntitiesConfig { @ConfigOption(name = "Max Amount", desc = "Not showing more than this amount of nearest entities.") @ConfigEditorSlider(minValue = 1, maxValue = 150, minStep = 1) public int maxAmount = 30; + + @Expose + @ConfigOption(name = "Exclude Garden", desc = "Disable this feature while in the Garden.") + @ConfigEditorBoolean + public boolean excludeGarden = false; } diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt index 0cd395e16705..cde4acdf4826 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt @@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.features.misc import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.CheckRenderEntityEvent import at.hannibal2.skyhanni.events.LorenzTickEvent +import at.hannibal2.skyhanni.features.garden.GardenAPI import at.hannibal2.skyhanni.utils.EntityUtils import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer import at.hannibal2.skyhanni.utils.LorenzUtils @@ -34,5 +35,5 @@ class HideFarEntities { } } - fun isEnabled() = LorenzUtils.inSkyBlock && config.enabled + fun isEnabled() = LorenzUtils.inSkyBlock && config.enabled && !(GardenAPI.inGarden() && config.excludeGarden) } From 304384113fdd831699a87e45e6166c53feb36b5f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 21 Mar 2024 22:14:10 +0100 Subject: [PATCH 09/11] made a feature toggle --- .../skyhanni/config/features/misc/HideFarEntitiesConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java index 73b5ac2a8c0c..10f1153e1834 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java @@ -10,6 +10,7 @@ public class HideFarEntitiesConfig { @Expose @ConfigOption(name = "Enabled", desc = "Hide all entities from rendering except the nearest ones.") @ConfigEditorBoolean + @FeatureToggle public boolean enabled = false; @Expose From eec57e3e2e90efcadb3a13f54de28875f076af08 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 3 Apr 2024 22:25:20 +0200 Subject: [PATCH 10/11] move --- src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt index 897799d62aa4..621446090898 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt @@ -537,6 +537,7 @@ class SkyHanniMod { loadModule(HideNotClickableItems()) loadModule(ItemDisplayOverlayFeatures) loadModule(CurrentPetDisplay()) + loadModule(HideFarEntities()) loadModule(ExpOrbsOnGroundHider()) loadModule(BetterWikiFromMenus()) loadModule(DamageIndicatorManager()) @@ -818,7 +819,6 @@ class SkyHanniMod { loadModule(RareDropMessages()) loadModule(CraftMaterialsFromBazaar()) loadModule(PestProfitTracker) - loadModule(HideFarEntities()) init() From fb52a196195f9e70809f885cf8d25abe00c5086f Mon Sep 17 00:00:00 2001 From: Cal Date: Wed, 24 Apr 2024 07:39:37 +1000 Subject: [PATCH 11/11] fix launch --- .../config/features/misc/HideFarEntitiesConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java index 10f1153e1834..2ac5ad4ed05c 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/HideFarEntitiesConfig.java @@ -2,9 +2,9 @@ import at.hannibal2.skyhanni.config.FeatureToggle; import com.google.gson.annotations.Expose; -import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; -import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider; -import io.github.moulberry.moulconfig.annotations.ConfigOption; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; +import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; public class HideFarEntitiesConfig { @Expose