diff options
| author | ohowe <42757516+carelesshippo@users.noreply.github.com> | 2021-05-05 18:13:28 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-05 18:13:28 -0600 |
| commit | 4d9e538ced80728bca74491698347333f515bfcc (patch) | |
| tree | e272c853cb9ebe7eb8334e405060bc820ee129fd /src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java | |
| parent | 59d3bf67d93d0204d0dc493508d9d9c2a24cd10b (diff) | |
| parent | 9aa7b49d224bfde055e12bc84f6908ba0a50090d (diff) | |
| download | notenoughupdates-4d9e538ced80728bca74491698347333f515bfcc.tar.gz notenoughupdates-4d9e538ced80728bca74491698347333f515bfcc.tar.bz2 notenoughupdates-4d9e538ced80728bca74491698347333f515bfcc.zip | |
Merge pull request #2 from Moulberry/master
x
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java index a6042134..760b7bab 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java @@ -3,6 +3,7 @@ package io.github.moulberry.notenoughupdates.miscgui; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import io.github.moulberry.notenoughupdates.NEUEventListener; import io.github.moulberry.notenoughupdates.NotEnoughUpdates; import io.github.moulberry.notenoughupdates.core.util.StringUtils; import io.github.moulberry.notenoughupdates.profileviewer.PlayerStats; @@ -578,7 +579,7 @@ public class AccessoryBagOverlay { } public static void renderOverlay() { - if(Minecraft.getMinecraft().currentScreen instanceof GuiChest) { + if(Minecraft.getMinecraft().currentScreen instanceof GuiChest && NEUEventListener.inventoryLoaded) { GuiChest eventGui = (GuiChest) Minecraft.getMinecraft().currentScreen; ContainerChest cc = (ContainerChest) eventGui.inventorySlots; String containerName = cc.getLowerChestInventory().getDisplayName().getUnformattedText(); |
