diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/dulkirmod/mixins/MixinGuiUtils.java | 2 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/features/ScalableTooltips.kt | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/dulkirmod/mixins/MixinGuiUtils.java b/src/main/java/dulkirmod/mixins/MixinGuiUtils.java index 414963b..52a6d9b 100644 --- a/src/main/java/dulkirmod/mixins/MixinGuiUtils.java +++ b/src/main/java/dulkirmod/mixins/MixinGuiUtils.java @@ -15,7 +15,7 @@ public class MixinGuiUtils { @Inject(method = "drawHoveringText", at = @At("HEAD"), cancellable = true) private static void drawScaledHoveringText(List<String> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, FontRenderer font, CallbackInfo ci) { - if (ScalableTooltips.INSTANCE.drawScaledHoveringText(textLines, mouseX, mouseY, screenWidth, screenHeight, maxTextWidth, font, ci)) + if (ScalableTooltips.INSTANCE.drawScaledHoveringText(textLines, mouseX, mouseY, screenWidth, screenHeight, font)) ci.cancel(); } } diff --git a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt index 95e1941..6b0a66f 100644 --- a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt +++ b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt @@ -8,7 +8,6 @@ import net.minecraft.client.renderer.RenderHelper import net.minecraftforge.fml.client.config.GuiUtils import org.lwjgl.input.Keyboard import org.lwjgl.input.Mouse -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo object ScalableTooltips { var scrollY: Int = 0 @@ -22,9 +21,7 @@ object ScalableTooltips { mouseY: Int, screenWidth: Int, screenHeight: Int, - maxTextWidth: Int, font: FontRenderer, - ci: CallbackInfo ): Boolean { if(!Config.scaledTooltips) return false if(textLines.isEmpty()) return true |