diff --git a/src/main/java/io/github/gaming32/worldhost/gui/screen/OnlineFriendsScreen.java b/src/main/java/io/github/gaming32/worldhost/gui/screen/OnlineFriendsScreen.java index 4d6905d..96689f9 100644 --- a/src/main/java/io/github/gaming32/worldhost/gui/screen/OnlineFriendsScreen.java +++ b/src/main/java/io/github/gaming32/worldhost/gui/screen/OnlineFriendsScreen.java @@ -458,9 +458,9 @@ public void render( } //#else //$$ if (relX < 32 && relX > 16) { - //$$ blit(context, GUI_SERVER_SELECTION_LOCATION, x, y, 0.0F, 32.0F, 32, 32, 256, 256); + //$$ blit(context, GUI_SERVER_SELECTION_LOCATION, x, y, 0, 32, 32, 32, 256, 256); //$$ } else { - //$$ blit(context, GUI_SERVER_SELECTION_LOCATION, x, y, 0.0F, 0.0F, 32, 32, 256, 256); + //$$ blit(context, GUI_SERVER_SELECTION_LOCATION, x, y, 0, 0, 32, 32, 256, 256); //$$ } //#endif } diff --git a/src/main/java/io/github/gaming32/worldhost/mixin/MixinGameRenderer.java b/src/main/java/io/github/gaming32/worldhost/mixin/MixinGameRenderer.java index 6bf739f..365116f 100644 --- a/src/main/java/io/github/gaming32/worldhost/mixin/MixinGameRenderer.java +++ b/src/main/java/io/github/gaming32/worldhost/mixin/MixinGameRenderer.java @@ -1,6 +1,5 @@ package io.github.gaming32.worldhost.mixin; -import net.minecraft.client.DeltaTracker; import net.minecraft.client.renderer.GameRenderer; import org.spongepowered.asm.mixin.Mixin; @@ -20,6 +19,10 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; //#endif +//#if MC >= 1.21.1 +import net.minecraft.client.DeltaTracker; +//#endif + @Mixin(GameRenderer.class) public class MixinGameRenderer { //#if MC >= 1.19.4