diff --git a/src/main/java/makeo/gadomancy/client/ClientProxy.java b/src/main/java/makeo/gadomancy/client/ClientProxy.java index 4930e68..9879288 100644 --- a/src/main/java/makeo/gadomancy/client/ClientProxy.java +++ b/src/main/java/makeo/gadomancy/client/ClientProxy.java @@ -53,6 +53,8 @@ import thaumcraft.client.renderers.entity.RenderGolemBase; import thaumcraft.client.renderers.tile.TileEldritchPortalRenderer; import thaumcraft.common.config.ConfigBlocks; import thaumcraft.common.entities.golems.EntityGolemBase; +import thaumcraft.common.tiles.TileEldritchAltar; +import thaumcraft.common.tiles.TileEldritchCap; import thaumcraft.common.tiles.TileEldritchObelisk; import java.util.List; @@ -104,6 +106,8 @@ public class ClientProxy extends CommonProxy { ClientRegistry.bindTileEntitySpecialRenderer(TileAdditionalEldritchPortal.class, new TileEldritchPortalRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEldritchObelisk.class, new RenderTileObelisk()); + ClientRegistry.bindTileEntitySpecialRenderer(TileEldritchAltar.class, new RenderTileCapEldritch("textures/models/obelisk_cap_altar.png")); + ClientRegistry.bindTileEntitySpecialRenderer(TileEldritchCap.class, new RenderTileCapEldritch("textures/models/obelisk_cap.png")); //Items TileArcaneDropper fakeTile = new TileArcaneDropper(); diff --git a/src/main/java/makeo/gadomancy/client/renderers/tile/RenderTileCapEldritch.java b/src/main/java/makeo/gadomancy/client/renderers/tile/RenderTileCapEldritch.java new file mode 100644 index 0000000..f5dc170 --- /dev/null +++ b/src/main/java/makeo/gadomancy/client/renderers/tile/RenderTileCapEldritch.java @@ -0,0 +1,33 @@ +package makeo.gadomancy.client.renderers.tile; + +import makeo.gadomancy.common.data.ModConfig; +import net.minecraft.tileentity.TileEntity; +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); + } + } +}