Coordinates Display

Coordinates Display

158k Downloads

Crashes when cycling through display options and hits end of list: Fabric

Vahpurr opened this issue ยท 0 comments

commented

When using the assigned key to cycle through different display options, when user gets to the last option and hits the keybind again, instead of returning to the first display option, Minecraft saves and crashes.


The game crashed whilst unexpected error
Error: java.lang.ArrayIndexOutOfBoundsException: Index 9 out of bounds for length 9


---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.

Time: 2024-07-15 23:17:49
Description: Unexpected error

java.lang.ArrayIndexOutOfBoundsException: Index 9 out of bounds for length 9
at dev.boxadactle.coordinatesdisplay.config.DisplayMode.nextMode(DisplayMode.java:86)
at dev.boxadactle.coordinatesdisplay.CoordinatesDisplay$Bindings.cycleDisplayMode(CoordinatesDisplay.java:161)
at dev.boxadactle.coordinatesdisplay.fabric.init.Keybinds.checkBindings(Keybinds.java:37)
at dev.boxadactle.coordinatesdisplay.fabric.CoordinatesDisplayFabric.checkBindings(CoordinatesDisplayFabric.java:39)
at net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents.lambda$static$2(ClientTickEvents.java:43)
at net.minecraft.class_310.handler$zfk000$fabric-lifecycle-events-v1$onEndTick(class_310.java:4183)
at net.minecraft.class_310.method_1574(class_310.java:2012)
at net.minecraft.class_310.method_1523(class_310.java:1246)
at net.minecraft.class_310.method_1514(class_310.java:882)
at net.minecraft.client.main.Main.main(Main.java:256)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)