package makeo.gadomancy.client.renderers.tile; import net.minecraft.tileentity.TileEntity; import makeo.gadomancy.common.data.config.ModConfig; import thaumcraft.client.renderers.tile.TileEldritchCapRenderer; import thaumcraft.common.config.Config; /** * This class is part of the Gadomancy Mod Gadomancy is Open Source and distributed under the GNU LESSER GENERAL PUBLIC * LICENSE for more read the LICENSE file *
* Created by HellFirePvP @ 10.11.2015 22:20 */ public class RenderTileCapEldritch extends TileEldritchCapRenderer { public RenderTileCapEldritch(String texture) { super(texture); } @Override public void renderTileEntityAt(TileEntity te, double x, double y, double z, float f) { if (te.getWorldObj().provider.dimensionId == ModConfig.dimOuterId) { int old = Config.dimensionOuterId; Config.dimensionOuterId = ModConfig.dimOuterId; super.renderTileEntityAt(te, x, y, z, f); Config.dimensionOuterId = old; } else { super.renderTileEntityAt(te, x, y, z, f); } } }