Fabric now runs! Crash on entering level though

This commit is contained in:
TomTheFurry
2022-06-12 15:43:40 +08:00
parent 2efb6fff49
commit 00b43dc90f
@@ -91,12 +91,16 @@ abstract class ClientConnectionMixin implements ChannelInfoHolder {
}
}
#if PRE_MC_1_19
@Inject(method = "channelInactive", at = @At("HEAD"))
private void handleDisconnect(ChannelHandlerContext channelHandlerContext, CallbackInfo ci) throws Exception {
if (packetListener instanceof NetworkHandlerExtensions) { // not the case for client/server query
((NetworkHandlerExtensions) packetListener).getAddon().handleDisconnect();
}
}
#else
//FIXME: error: No obfuscation mapping for @Inject target channelInactive
#endif
@Override
public Collection<ResourceLocation> getPendingChannelsNames() {