EMI

EMI

1M Downloads

[1.20.2] Can't connect to any servers

RuiNtD opened this issue ยท 7 comments

commented

An internal error occurs when I connect to any server. Only mods installed are EMI and Fabric API.

Log: https://mclo.gs/njoeM5e

image

commented

Deobfuscated: class net.minecraft.world.item.crafting.RecipeHolder cannot be cast to class net.minecraft.world.item.crafting.Recipe (Mojmap)

commented

Having this issue too, using Modrinth app

commented

I have the same issue, but the output is a little different

Client disconnected with reason: Internal Exception: io.netty.handler.codec.DecoderException: java.lang.ClassCastException: class net.minecraft.class_8786 cannot be cast to class net.minecraft.class_1860 (net.minecraft.class_8786 and net.minecraft.class_1860 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @52aa2946)

commented

i have the same issue.

commented

Note: This happens because readRecipe returns RecipeEntry now, but the callback info still refers to Recipe.

@Inject(at = @At("RETURN"), method = "readRecipe", locals = LocalCapture.CAPTURE_FAILHARD)
private static void readRecipe(PacketByteBuf buf, CallbackInfoReturnable<Recipe<?>> info, Identifier serializer, Identifier id) {
Recipe<?> recipe = info.getReturnValue();

commented

oh I was wondering where I touched recipe networking, thanks for figuring it out juuxel

commented

Fixed in 1.0.22