diff options
| author | Oliver Howe <ojhowe95@gmail.com> | 2021-03-21 16:04:54 -0600 |
|---|---|---|
| committer | Oliver Howe <ojhowe95@gmail.com> | 2021-03-21 16:04:54 -0600 |
| commit | 12fa7d745b5d8863eca55684f253e327d259a9b9 (patch) | |
| tree | 3b5b4f27ab9445ba10ec1fea9ee71bd0f06cb242 /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | |
| parent | 06c3c7fcfd8f65e2a30f81626457f4180ea52a36 (diff) | |
| download | notenoughupdates-12fa7d745b5d8863eca55684f253e327d259a9b9.tar.gz notenoughupdates-12fa7d745b5d8863eca55684f253e327d259a9b9.tar.bz2 notenoughupdates-12fa7d745b5d8863eca55684f253e327d259a9b9.zip | |
Inital commit for price filtering
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index 689a98f1..952d8f59 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -4,6 +4,7 @@ import com.google.common.collect.Lists; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import io.github.moulberry.notenoughupdates.auction.CustomAHGui; import io.github.moulberry.notenoughupdates.core.BackgroundBlur; import io.github.moulberry.notenoughupdates.core.GuiScreenElementWrapper; import io.github.moulberry.notenoughupdates.core.util.lerp.LerpingInteger; @@ -1320,7 +1321,7 @@ public class NEUOverlay extends Gui { public float getWidthMult() { float scaleFMult = 1; if(Utils.peekGuiScale().getScaleFactor()==4) scaleFMult *= 0.9f; - if(manager.auctionManager.customAH.isRenderOverAuctionView()) scaleFMult *= 0.8f; + if(manager.auctionManager.customAH.isRenderOverAuctionView() || Minecraft.getMinecraft().currentScreen instanceof CustomAHGui) scaleFMult *= 0.8f; return (float)Math.max(0.5, Math.min(1.5, NotEnoughUpdates.INSTANCE.config.itemlist.paneWidthMult))*scaleFMult; } |
