From 06f7147a391cd24d3abec4c44c4d0771d4397400 Mon Sep 17 00:00:00 2001 From: Stereowalker Date: Wed, 20 Mar 2024 15:15:20 +0100 Subject: [PATCH] Update GuiMixin.java --- .../com/stereowalker/controllermod/mixin/GuiMixin.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/java/com/stereowalker/controllermod/mixin/GuiMixin.java b/src/main/java/com/stereowalker/controllermod/mixin/GuiMixin.java index fb8f146..ae19c6b 100644 --- a/src/main/java/com/stereowalker/controllermod/mixin/GuiMixin.java +++ b/src/main/java/com/stereowalker/controllermod/mixin/GuiMixin.java @@ -5,17 +5,13 @@ import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.ModifyVariable; import org.spongepowered.asm.mixin.injection.Redirect; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; -import org.spongepowered.asm.mixin.injection.callback.LocalCapture; import com.mojang.blaze3d.platform.Window; import com.stereowalker.controllermod.ControllerMod; -import com.stereowalker.controllermod.client.PaperDollOptions; import net.minecraft.client.Minecraft; -import net.minecraft.client.gui.Font; import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.GuiGraphics; import net.minecraft.world.entity.player.Player; @@ -29,12 +25,6 @@ public class GuiMixin { @Shadow @Final private Minecraft minecraft; @Shadow private void renderSlot(GuiGraphics guiGraphics, int x, int y, float partialTick, Player player, ItemStack stack, int seed) {} - - @Inject(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/Mth;lerp(FFF)F", ordinal = 0), locals = LocalCapture.CAPTURE_FAILHARD) - public void render2(GuiGraphics guiGraphics, float arg1, CallbackInfo ci, Window w, Font font) { - PaperDollOptions.renderPlayerDoll(guiGraphics); - } - @Redirect(method = "render", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/platform/Window;getGuiScaledWidth()I")) public int render_reditect_width(Window window) { return window.getGuiScaledWidth() - (ControllerMod.getSafeArea()*2);