Redstone Pen

Redstone Pen

7M Downloads

[Crash] ClassCastException: class com.anthonyhilyard.iceberg.util.EntityCollector cannot be cast to class net.minecraft.server.level.ServerLevel

pietro-lopes opened this issue ยท 2 comments

commented

https://mclo.gs/Y8xabON#L8198

Those are unsafe cast

onTriggerRemoteLink((ServerLevel)world, (ServerPlayer)player, player.getItemInHand(hand));

commented

Hi, thanks for the report and taking a look at the code as well. Strange, the clause the line before (if(world.isClientSide) ) should normally cover that, but I will add an explicit instanceof check. Cheers,-

commented

Addressed in v1.11.42.