OpenModularTurretsTeam / OpenModularTurrets

Repo for OpenModularTurrets.
https://minecraft.curseforge.com/projects/openmodularturrets
Other
49 stars 34 forks source link

ArrayIndexOutOfBoundsException upon loading chunks #552

Closed LemADEC closed 2 years ago

LemADEC commented 3 years ago

Issue Description:

Server crash when player loads chunk with a placed turret.

Note: it seems related to #537, through I'm unable to confirm if it's a relativistic turret or not.

What happens:

Server crash

What you expected to happen:

No crash

Steps to reproduce:

  1. Player joining in existing base
  2. (unknown turret details at this time)

Affected Versions (Do not use "latest"):

Your most recent log file where the issue was present:

Description: Exception ticking world

java.lang.ArrayIndexOutOfBoundsException: 4
    at omtteam.openmodularturrets.tileentity.turrets.TurretHead.func_189515_b(TurretHead.java:91)
    at omtteam.omlib.tileentity.TileEntityBase.func_189517_E_(TileEntityBase.java:48)
    at net.minecraft.network.play.server.SPacketChunkData.<init>(SourceFile:52)
    at net.minecraft.server.management.PlayerChunkMapEntry.func_187272_b(PlayerChunkMapEntry.java:157)
    at net.minecraft.server.management.PlayerChunkMap.func_72693_b(SourceFile:165)
    at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:227)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
    at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:748)
Keridos commented 2 years ago

If this still happens, feel free to reopen this

LemADEC commented 2 years ago

Relativistic turrets have been disabled so they were probably the source of that problem