Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Fix crash when opening structure block screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Oct 11, 2020
1 parent 6d0eacf commit e1fe7dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Boolean> ci) {
if (ConnectionInfo.protocolVersion <= Protocols.V1_12_2) {
ci.setReturnValue(super.charTyped(chr, keyCode));
Expand Down

0 comments on commit e1fe7dd

Please sign in to comment.