aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-12-31 13:41:19 +1100
committerGitHub <noreply@github.com>2022-12-31 03:41:19 +0100
commit103c2ed444d2f4d3becd300fb169b3e60b468c47 (patch)
treee49d3fd24a8e944edec5755d3aa99211bafcaaa2 /src/main/java
parent81a7db8fd001c99b846579547b1f7f1637fd73bb (diff)
downloadNotEnoughUpdates-103c2ed444d2f4d3becd300fb169b3e60b468c47.tar.gz
NotEnoughUpdates-103c2ed444d2f4d3becd300fb169b3e60b468c47.tar.bz2
NotEnoughUpdates-103c2ed444d2f4d3becd300fb169b3e60b468c47.zip
Fixed better containers flashing white for a few ticks (#524)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BetterContainers.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BetterContainers.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BetterContainers.java
index ad0b238a..dc7b0e15 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BetterContainers.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BetterContainers.java
@@ -22,7 +22,6 @@ package io.github.moulberry.notenoughupdates.miscfeatures;
import com.google.gson.JsonObject;
import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
import io.github.moulberry.notenoughupdates.events.SlotClickEvent;
-import io.github.moulberry.notenoughupdates.listener.RenderListener;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiChest;
import net.minecraft.client.renderer.GlStateManager;
@@ -90,7 +89,7 @@ public class BetterContainers {
public static void bindHook(TextureManager textureManager, ResourceLocation location) {
long currentMillis = System.currentTimeMillis();
- if (isChestOpen() && RenderListener.inventoryLoaded) {
+ if (isChestOpen()) {
int invHashcode = lastInvHashcode;
if (currentMillis - lastHashcodeCheck > 50) {