Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
I've committed this from the browser, so I haven't tested it yet, but it probably works.
  • Loading branch information
tomocrafter committed Sep 16, 2019
1 parent a19092f commit a770462
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a770462

Please sign in to comment.