aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
diff options
context:
space:
mode:
authoringlettronald <71849533+inglettronald@users.noreply.github.com>2023-01-11 02:36:35 -0600
committeringlettronald <inglettronald@gmail.com>2023-01-11 02:36:35 -0600
commitd7062b05c3d309e7a1e14d6d50c586b1dfe2138c (patch)
tree8a599b431dbf976e501770ec02779d97229005cb /src/main/java/dulkirmod/mixins/MixinGuiContainer.java
parentdfcc2c5818daa50b558a8a4cb81d0e92e03219d2 (diff)
downloadDulkirMod-d7062b05c3d309e7a1e14d6d50c586b1dfe2138c.tar.gz
DulkirMod-d7062b05c3d309e7a1e14d6d50c586b1dfe2138c.tar.bz2
DulkirMod-d7062b05c3d309e7a1e14d6d50c586b1dfe2138c.zip
- 1.14 commit:
oldanimations "fix" and scalable tooltips
Diffstat (limited to 'src/main/java/dulkirmod/mixins/MixinGuiContainer.java')
-rw-r--r--src/main/java/dulkirmod/mixins/MixinGuiContainer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
index 4a50163..50118f1 100644
--- a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
+++ b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
@@ -2,6 +2,7 @@ package dulkirmod.mixins;
import dulkirmod.features.Croesus;
import dulkirmod.features.DungeonLeap;
+import dulkirmod.features.ScalableTooltips;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.GlStateManager;
@@ -43,4 +44,9 @@ public abstract class MixinGuiContainer extends GuiScreen {
this.zLevel = 0.0F;
}
}
+ @Inject(method = "onGuiClosed", at = @At("HEAD"))
+ private void onGuiClosed(CallbackInfo ci) {
+ // reset values here
+ ScalableTooltips.INSTANCE.resetPos();
+ }
}