diff options
Diffstat (limited to 'src/main/java/dulkirmod/mixins/MixinGuiContainer.java')
-rw-r--r-- | src/main/java/dulkirmod/mixins/MixinGuiContainer.java | 6 |
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(); + } } |