ArrayIndexOutOfBoundsException when performing Zaphkiel Waltz or Hymn of Maturity at low Y coordinates
ljfa-ag opened this issue ยท 0 comments
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 24
at net.minecraft.world.level.chunk.ChunkAccess.getSection(ChunkAccess.java:147) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading}
at pokefenn.totemic.apiimpl.ceremony.CeremonyAPIImpl.forEachBlockIn(CeremonyAPIImpl.java:29) ~[%23183!/:?] {re:classloading}
at pokefenn.totemic.ceremony.ZaphkielWaltzCeremony.effect(ZaphkielWaltzCeremony.java:23) ~[%23183!/:?] {re:classloading}
at pokefenn.totemic.block.totem.entity.StateCeremonyEffect.tick(StateCeremonyEffect.java:60) ~[%23183!/:?] {re:classloading}
at pokefenn.totemic.block.totem.entity.TotemBaseBlockEntity.tick(TotemBaseBlockEntity.java:67) ~[%23183!/:?] {re:classloading}
at net.minecraft.world.level.chunk.LevelChunk$BoundTickingBlockEntity.tick(LevelChunk.java:687) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading}
at net.minecraft.world.level.chunk.LevelChunk$RebindableTickingBlockEntityWrapper.tick(LevelChunk.java:780) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading}
at net.minecraft.world.level.Level.tickBlockEntities(Level.java:483) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:334) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:896) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:836) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:90) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:672) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:244) ~[forge-1.19.2-43.3.0_mapped_parchment_2022.11.27-1.19.2-recomp.jar%23178!/:?] {re:classloading,pl:accesstransformer:B}
at java.lang.Thread.run(Thread.java:840) [?:?] {}
Appears to happen when the CeremonyAPIImpl.forEachBlockIn is called with Y coordinate below the build height. Can happen easily in superflat worlds. Probably affects all Minecraft versions.