From 6e9380be49dc4841bbe92875094ec2fbaa79c45b Mon Sep 17 00:00:00 2001 From: ZekerZhayard Date: Sun, 23 Apr 2023 20:13:11 +0800 Subject: [PATCH] Support Fabric 23w16a. (#253) --- Fabric/mixin.tsrg | 2 ++ .../customskinloader/mixin/MixinGuiPlayerTabOverlay.java | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Fabric/mixin.tsrg b/Fabric/mixin.tsrg index 7f3bb6c..1c96fec 100644 --- a/Fabric/mixin.tsrg +++ b/Fabric/mixin.tsrg @@ -4,9 +4,11 @@ net/minecraft/client/Minecraft net/minecraft/class_310 net/minecraft/client/entity/AbstractClientPlayer net/minecraft/class_742 getDownloadImageSkin (Lnet/minecraft/util/ResourceLocation;Ljava/lang/String;)Lnet/minecraft/client/renderer/ThreadDownloadImageData; method_3120 getLocationSkin (Ljava/lang/String;)Lnet/minecraft/util/ResourceLocation; method_3124 +net/minecraft/client/gui/Gui net/minecraft/class_332 net/minecraft/client/gui/GuiPlayerTabOverlay net/minecraft/class_355 renderPlayerlist (ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V method_1919 renderPlayerlist (Lcom/mojang/blaze3d/matrix/MatrixStack;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V method_1919 + renderPlayerlist (Lnet/minecraft/client/gui/Gui;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V method_1919 net/minecraft/client/gui/spectator/PlayerMenuObject net/minecraft/class_530 net/minecraft/client/model/ModelRenderer net/minecraft/class_630 net/minecraft/client/renderer/IImageBuffer net/minecraft/class_760 diff --git a/Vanilla/Common/source/customskinloader/mixin/MixinGuiPlayerTabOverlay.java b/Vanilla/Common/source/customskinloader/mixin/MixinGuiPlayerTabOverlay.java index ec75bff..cf65da7 100644 --- a/Vanilla/Common/source/customskinloader/mixin/MixinGuiPlayerTabOverlay.java +++ b/Vanilla/Common/source/customskinloader/mixin/MixinGuiPlayerTabOverlay.java @@ -11,8 +11,9 @@ import org.spongepowered.asm.mixin.injection.Redirect; public abstract class MixinGuiPlayerTabOverlay { @Redirect( method = { - "Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V", - "Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(Lcom/mojang/blaze3d/matrix/MatrixStack;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V" + "Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V", // 20w16a- + "Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(Lcom/mojang/blaze3d/matrix/MatrixStack;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V", // 20w17a ~ 23w14a + "Lnet/minecraft/client/gui/GuiPlayerTabOverlay;renderPlayerlist(Lnet/minecraft/client/gui/Gui;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreObjective;)V" // 23w16a+ }, at = @At( value = "INVOKE",