diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-09-15 18:19:50 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-09-15 18:19:50 +0200 |
commit | 7ff215aa9f318298ab15504141e97a0fe3582669 (patch) | |
tree | 091fdc2828fadffd4b0b2db9f0865212ef8c7f44 /src | |
parent | 676cd4b5b5e7eb035a889ec5afeb939255dc2679 (diff) | |
parent | 6e73b7b440b22c0e93cbe40d852cc609f7397509 (diff) | |
download | NotEnoughUpdates-7ff215aa9f318298ab15504141e97a0fe3582669.tar.gz NotEnoughUpdates-7ff215aa9f318298ab15504141e97a0fe3582669.tar.bz2 NotEnoughUpdates-7ff215aa9f318298ab15504141e97a0fe3582669.zip |
Merge branch 'master' into minion_helper_2
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/overlays/TextTabOverlay.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextTabOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextTabOverlay.java index 8073062c..03578c95 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextTabOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextTabOverlay.java @@ -21,6 +21,7 @@ package io.github.moulberry.notenoughupdates.overlays; import io.github.moulberry.notenoughupdates.core.config.Position; import net.minecraft.client.Minecraft; +import net.minecraft.client.gui.GuiChat; import org.lwjgl.input.Keyboard; import java.util.List; @@ -58,7 +59,16 @@ public abstract class TextTabOverlay extends TextOverlay { } private boolean shouldUpdate() { - //prevent rendering unless no gui is open - return Minecraft.getMinecraft().currentScreen == null; + //prevent rendering when tab completing a command + if (Minecraft.getMinecraft().currentScreen instanceof GuiChat) { + return false; + } + + //prevent rendering when tab completing in ah search overlay + if (AuctionSearchOverlay.shouldReplace()) { + return false; + } + + return true; } } |