From e1fe7ddde504bcdb72fd03e5d546385cfc11ab97 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 11 Oct 2020 21:11:12 +0100 Subject: [PATCH] Fix crash when opening structure block screen --- .../protocols/v1_12_2/mixin/MixinStructureBlockScreen1.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/earthcomputer/multiconnect/protocols/v1_12_2/mixin/MixinStructureBlockScreen1.java b/src/main/java/net/earthcomputer/multiconnect/protocols/v1_12_2/mixin/MixinStructureBlockScreen1.java index f18fac1e..7f8ca5c0 100644 --- a/src/main/java/net/earthcomputer/multiconnect/protocols/v1_12_2/mixin/MixinStructureBlockScreen1.java +++ b/src/main/java/net/earthcomputer/multiconnect/protocols/v1_12_2/mixin/MixinStructureBlockScreen1.java @@ -16,7 +16,7 @@ public MixinStructureBlockScreen1(TextRenderer textRenderer, int x, int y, int w super(textRenderer, x, y, width, height, copyFrom, text); } - @Inject(method = "charTyped", at = @At("HEAD"), cancellable = true) + @Inject(method = "charTyped(CI)Z", at = @At("HEAD"), cancellable = true) private void onCharTyped(char chr, int keyCode, CallbackInfoReturnable ci) { if (ConnectionInfo.protocolVersion <= Protocols.V1_12_2) { ci.setReturnValue(super.charTyped(chr, keyCode));