Kibe Utilities

Kibe Utilities

8M Downloads

Crash when a mob dies to spikes

RSAmaro opened this issue ยท 4 comments

commented

Just like the title says, I was building a mob farm, and for some reason, everytime a mob dies, it just crashes the server.

Modpack: Benchmark II 0.6.5

Crash Log
crash.txt

commented

you can close this now it was fixed

commented

Please don't post crash reports directly in the issue message, it's horrible to read, just upload the file. Also this is being caused by PlayerEvents. They're casting all PlayerEntities to ServerPlayerEntities without actually checking if they're ServerPlayerEntities.
https://github.com/ByMartrixx/player-events/blob/ed4108f2de03bb10d5481730b0094f0c6d4a8cdb/api/src/main/java/me/bymartrixx/playerevents/api/mixin/PlayerKillEntityMixin.java#L24
If they just change (entity instanceof PlayerEntity) to (entity instanceof ServerPlayerEntity) this would be fixed, and the code would be even cleaner cause those two casts could be avoided.

commented

PlayerEvents needs to fix it as changing my FakePlayer to a ServerPlayerEntity would break functionality with some features.

commented

So this can be fixed in a future kibe update? or can only PlayerEvents fix this?