summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorAizistral2022-11-11 21:00:31 +0100
committerAizistral2022-11-11 21:00:31 +0100
commitcbadf7397d1b4d2bd907ddbbbe881cca873454c0 (patch)
tree2a85a868c0e8173b65221864d49e07852b1da4eb /src/main
parent0d86b36a12451eb2aff03f452cca390b74c705c4 (diff)
Update MixinPlayerEntry.java
Fixes #286
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/aizistral/nochatreports/mixins/client/MixinPlayerEntry.java7
1 files changed, 1 insertions, 6 deletions
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<FormattedCharSequence> 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 = "<init>", at = @At("RETURN"))
- private void onConstructed(Minecraft minecraft, SocialInteractionsScreen screen, UUID uUID, String string, Supplier<ResourceLocation> supplier, boolean reportable, CallbackInfo info) {
+ private void onConstructed(Minecraft minecraft, SocialInteractionsScreen screen, UUID uuid, String name, Supplier<ResourceLocation> skinGetter, boolean reportable, CallbackInfo info) {
if (NCRConfig.getClient().alwaysHideReportButton()) {
this.reportButton = new InvisibleButton();
this.reportButton.active = this.reportButton.visible = false;