diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-08-17 09:38:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-17 09:38:24 +0200 |
| commit | 5d2aa40fdee044c0579f426bff279b9d631e306f (patch) | |
| tree | 9596afb42da307f874b0bb06ae5aeeae04465aea /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java | |
| parent | 1d23d88488f1266538275e3c069916c1fec58281 (diff) | |
| download | notenoughupdates-5d2aa40fdee044c0579f426bff279b9d631e306f.tar.gz notenoughupdates-5d2aa40fdee044c0579f426bff279b9d631e306f.tar.bz2 notenoughupdates-5d2aa40fdee044c0579f426bff279b9d631e306f.zip | |
Probably fixing Lag spikes (#229)
* using method getOpenChestName instead of field lastOpenContainerName
* probably fixing lag spikes in power stone stats display
* using new getOpenChestName in EnchantingSolvers
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java index 0d2d863d..3bd674dd 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java @@ -24,7 +24,6 @@ import io.github.moulberry.notenoughupdates.NotEnoughUpdates; import io.github.moulberry.notenoughupdates.core.GuiElement; import io.github.moulberry.notenoughupdates.core.util.render.RenderUtils; import io.github.moulberry.notenoughupdates.core.util.render.TextRenderUtils; -import io.github.moulberry.notenoughupdates.util.SBInfo; import io.github.moulberry.notenoughupdates.util.Utils; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; @@ -67,8 +66,7 @@ public class AuctionBINWarning extends GuiElement { return false; } - if (Minecraft.getMinecraft().currentScreen instanceof GuiChest && - SBInfo.getInstance().lastOpenContainerName.startsWith("Create BIN Auction")) { + if (Utils.getOpenChestName().startsWith("Create BIN Auction")) { return true; } else { sellingTooltip = null; |
