
Guardian orb entities can trigger a crash on servers
break-core opened this issue ยท 0 comments
Issue
While playing on a server, guardian orbs are able to completely crash the server. I'm not exactly sure how the crash works, but from what I've heard, it has something to do with 2 guardian orbs being next to each other?
Anyways, here is the crash log (I tried to format it better for readability)
[01:50:34] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.StackOverflowError: null
at dev.cammiescorner.arcanuscontinuum.common.entities.magic.GuardianOrbEntity.<init>(GuardianOrbEntity.java:49) ~[arcanuscontinuum-0.109.1.i0:0/:0.109.1]
at net.minecraft.entity.EntityType.create(EntityType.java:544) ~[minecraft-1.20.1.i0:0/:?]
at dev.cammiescorner.arcanuscontinuum.common.spell_components.shapes.GuardianOrbSpellShape.cast(GuardianOrbSpellShape.java:28) ~[arcanuscontinuum-0.109.1.i0:0/:0.109.1]
at dev.cammiescorner.arcanuscontinuum.api.spells.SpellShape.castNext(SpellShape.java:50) ~[arcanuscontinuum-0.109.1.i0:0/:0.109.1]
at dev.cammiescorner.arcanuscontinuum.common.entities.magic.GuardianOrbEntity.remove(GuardianOrbEntity.java:113) ~[arcanuscontinuum-0.109.1.i0:0/:0.109.1] // Inherited method from Entity
at net.minecraft.entity.Entity.kill(Entity.java:373) ~[minecraft-1.20.1.i0:0/:?]
at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
at dev.cammiescorner.arcanuscontinuum.common.spell_components.shapes.GuardianOrbSpellShape.cast(GuardianOrbSpellShape.java:33) ~[arcanuscontinuum-0.109.1.i0:0/:0.109.1] // oldOrbs.forEach(Entity::kill);
at dev.cammiescorner.arcanuscontinuum.api.spells.SpellShape.castNext(SpellShape.java:50) ~[arcanuscontinuum-0.109.1.i0:0/:0.109.1]
at dev.cammiescorner.arcanuscontinuum.common.entities.magic.GuardianOrbEntity.remove(GuardianOrbEntity.java:113) ~[arcanuscontinuum-0.109.1.i0:0/:0.109.1] // inherited method from Entity
at net.minecraft.entity.Entity.kill(Entity.java:373) ~[minecraft-1.20.1.i0:0/:?]
at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
// after this point it just keeps repeating the same error