mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-20 03:59:56 +00:00
- Fixed Obelisk render overwrite
This commit is contained in:
1 parent
4b48d55604
commit
f21cd2e54f
2 files changed
+37
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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
|
||||
* <p/>
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user