From cbadf7397d1b4d2bd907ddbbbe881cca873454c0 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Fri, 11 Nov 2022 21:00:31 +0100 Subject: Update MixinPlayerEntry.java Fixes #286 --- .../aizistral/nochatreports/mixins/client/MixinPlayerEntry.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/main/java/com/aizistral') diff --git a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinPlayerEntry.java b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinPlayerEntry.java index 5261121..16d56e4 100644 --- a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinPlayerEntry.java +++ b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinPlayerEntry.java @@ -35,18 +35,13 @@ public class MixinPlayerEntry { @Shadow @Final private static ResourceLocation REPORT_BUTTON_LOCATION; @Shadow private Button reportButton; - @Shadow - static void postRenderTooltip(SocialInteractionsScreen socialInteractionsScreen, PoseStack poseStack, List list, int i, int j) { - throw new IllegalStateException("@Shadow transformation failed. Should never happen."); - } - /** * @reason Disable (or hide if configured respectively) chat report button on client. * @author Aizistral */ @Inject(method = "", at = @At("RETURN")) - private void onConstructed(Minecraft minecraft, SocialInteractionsScreen screen, UUID uUID, String string, Supplier supplier, boolean reportable, CallbackInfo info) { + private void onConstructed(Minecraft minecraft, SocialInteractionsScreen screen, UUID uuid, String name, Supplier skinGetter, boolean reportable, CallbackInfo info) { if (NCRConfig.getClient().alwaysHideReportButton()) { this.reportButton = new InvisibleButton(); this.reportButton.active = this.reportButton.visible = false; -- cgit v1.2.3