From a7704623db33d015d2b180f72d88b511445da4f4 Mon Sep 17 00:00:00 2001 From: tomotomo Date: Mon, 16 Sep 2019 17:18:54 +0900 Subject: [PATCH] Fixes issue #110 I've committed this from the browser, so I haven't tested it yet, but it probably works. --- .../mixins/MixinTileEntityEnderChestRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/codes/biscuit/skyblockaddons/mixins/MixinTileEntityEnderChestRenderer.java b/src/main/java/codes/biscuit/skyblockaddons/mixins/MixinTileEntityEnderChestRenderer.java index c74715b636..841a8de3e8 100644 --- a/src/main/java/codes/biscuit/skyblockaddons/mixins/MixinTileEntityEnderChestRenderer.java +++ b/src/main/java/codes/biscuit/skyblockaddons/mixins/MixinTileEntityEnderChestRenderer.java @@ -38,7 +38,8 @@ public abstract class MixinTileEntityEnderChestRenderer extends TileEntitySpecia ordinal = 1)) private void bindTexture(TileEntityEnderChestRenderer tileEntityEnderChestRenderer, ResourceLocation location) { SkyblockAddons main = SkyblockAddons.getInstance(); - if (main.getUtils().isOnSkyblock() && main.getConfigValues().isEnabled(Feature.MAKE_ENDERCHESTS_GREEN_IN_END) && + Minecraft mc = Minecraft.getMinecraft(); + if (main.getUtils().isOnSkyblock() && main.currentScreen != null && main.getConfigValues().isEnabled(Feature.MAKE_ENDERCHESTS_GREEN_IN_END) && (main.getUtils().getLocation() == EnumUtils.Location.THE_END || main.getUtils().getLocation() == EnumUtils.Location.DRAGONS_NEST)) { bindTexture(GREEN_ENDERCHEST); } else {