diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-05-30 03:51:53 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-29 19:51:53 +0200 |
| commit | fe625428273cf9bba1c5e3ed1327600ee63ef0ff (patch) | |
| tree | a24d01ebaaa5d93f51a318fab9dc8be793a658f5 /src/main/kotlin | |
| parent | d366be39e375827e01838c66362143e1e5a34e88 (diff) | |
| download | NotEnoughUpdates-fe625428273cf9bba1c5e3ed1327600ee63ef0ff.tar.gz NotEnoughUpdates-fe625428273cf9bba1c5e3ed1327600ee63ef0ff.tar.bz2 NotEnoughUpdates-fe625428273cf9bba1c5e3ed1327600ee63ef0ff.zip | |
Fix OneConfig crashing on the mining settings (#1187)
Diffstat (limited to 'src/main/kotlin')
| -rw-r--r-- | src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/GlaciteTunnelWaypoints.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/GlaciteTunnelWaypoints.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/GlaciteTunnelWaypoints.kt index cb4c8377..3c19f396 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/GlaciteTunnelWaypoints.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/GlaciteTunnelWaypoints.kt @@ -70,7 +70,7 @@ object GlaciteTunnelWaypoints { @SubscribeEvent fun onRender(event: RenderWorldLastEvent) { - if (NotEnoughUpdates.INSTANCE.config.mining.tunnelWaypoints == Mining.GlaciteTunnelWaypointBehaviour.NONE) + if (NotEnoughUpdates.INSTANCE.config.mining.tunnelWaypoints.get() == Mining.GlaciteTunnelWaypointBehaviour.NONE) return if (SBInfo.getInstance().scoreboardLocation !in glaciteTunnelLocations) @@ -83,7 +83,7 @@ object GlaciteTunnelWaypoints { val player = Minecraft.getMinecraft().thePlayer?.position ?: return for (entry in wantedGemstones) { val waypoints = waypointsForQuest[entry] ?: continue - val waypointLocations = when (NotEnoughUpdates.INSTANCE.config.mining.tunnelWaypoints) { + val waypointLocations = when (NotEnoughUpdates.INSTANCE.config.mining.tunnelWaypoints.get()) { Mining.GlaciteTunnelWaypointBehaviour.SHOW_ALL -> { waypoints.waypoints } @@ -92,7 +92,7 @@ object GlaciteTunnelWaypoints { listOf(waypoints.waypoints.minByOrNull { it.distanceSq(player) }) } - Mining.GlaciteTunnelWaypointBehaviour.NONE -> break + else -> break } for (waypoint in waypointLocations) { if (waypoint == null) continue |
