I didn't know this bug existed until I went to an end city and immediately crashed, and the reason was "java.lang.StackOverflowError: Ticking entity" it was trying to get peek amount of a shulker over and over and failed everytime leading to a 'StackOverflow' (I guess. don't really know what that is). I tried surrounding it with try and catch using mixins, but than realised that I didn't know shit about mixins so it would be great if someone were to helped me.
its at net.minecraft.entity.mob.ShulkerEntity:
The code:
private int getPeekAmount() { return (Byte)this.dataTracker.get(PEEK_AMOUNT); }
Thanks!