Closed zontreck closed 2 months ago
I have also seen a ticking entity crash on other mods as well. I'm not sure if this is an issue with AlexsMobs, or with NeoForge, or with the base game server itself.
I'm also seeing this constantly with Sugar Gliders:
[07.04 20:48:03] [Server] Caused byjava.lang.NullPointerException: Cannot assign field "f19812" because "e" is null [07.04 20:48:03] [Server] at com.github.alexthe666.alexsmobs.entity.EntitySugarGlider.m8119(EntitySugarGlider.java:304) ~[alexsmobs-1.22.8.jar%23214!/:1.22.{re:classloading}
List<ItemStack> lootList = getForageLoot(state);
if (lootList.size() > 0) {
for (ItemStack stack : lootList) {
ItemEntity e = this.spawnAtLocation(stack.copy());
e.hasImpulse = true; // <---- Crashes here
e.setDeltaMovement(e.getDeltaMovement().multiply(0.2, 0.2, 0.2));
}
}
I'm also seeing this constantly with Sugar Gliders:
[07.04 20:48:03] [Server] Caused byjava.lang.NullPointerException: Cannot assign field "f19812" because "e" is null [07.04 20:48:03] [Server] at com.github.alexthe666.alexsmobs.entity.EntitySugarGlider.m8119(EntitySugarGlider.java:304) ~[alexsmobs-1.22.8.jar%23214!/:1.22.{re:classloading}
List<ItemStack> lootList = getForageLoot(state); if (lootList.size() > 0) { for (ItemStack stack : lootList) { ItemEntity e = this.spawnAtLocation(stack.copy()); e.hasImpulse = true; // <---- Crashes here e.setDeltaMovement(e.getDeltaMovement().multiply(0.2, 0.2, 0.2)); } }
Same error exactly with sugar gliders as mc-goodch on our server.
One of my friends set up a rocky roller spawner and this is the resulting crash report.
Despite this issue mentioning the rocky roller. I do not believe it is isolated to that entity. I have seen crashes reported here for other entities as well. The common crash cause is "Ticking Entity"
The crash report has been shortened due to the maximum character limit being exceeded. If you see a /.../ in the log, know it repeated on for quite some time.