From 9a562e1e34899abfdd8f48caa01c730077b0410d Mon Sep 17 00:00:00 2001 From: IzzelAliz Date: Tue, 27 Apr 2021 16:11:33 +0800 Subject: [PATCH] Fix custom payload channel register (#84) --- .../mixin/core/network/play/ServerPlayNetHandlerMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/play/ServerPlayNetHandlerMixin.java b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/play/ServerPlayNetHandlerMixin.java index 1bc16565..2f386c59 100644 --- a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/play/ServerPlayNetHandlerMixin.java +++ b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/play/ServerPlayNetHandlerMixin.java @@ -1684,7 +1684,7 @@ public abstract class ServerPlayNetHandlerMixin implements ServerPlayNetHandlerB private static final ResourceLocation CUSTOM_REGISTER = new ResourceLocation("register"); private static final ResourceLocation CUSTOM_UNREGISTER = new ResourceLocation("unregister"); - @Inject(method = "processCustomPayload", at = @At("RETURN")) + @Inject(method = "processCustomPayload", at = @At(value = "INVOKE", remap = false, target = "Lnet/minecraftforge/fml/network/NetworkHooks;onCustomPayload(Lnet/minecraftforge/fml/network/ICustomPacket;Lnet/minecraft/network/NetworkManager;)Z")) private void arclight$customPayload(CCustomPayloadPacket packet, CallbackInfo ci) { if (packet.channel.equals(CUSTOM_REGISTER)) { try {