mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 13:10:13 +00:00
#791 Crash with Quite Clear Glass.
This commit is contained in:
1 parent
a2b963922a
commit
2e7112d3e3
2 files changed
+19
-18
No files matched your search
@@ -99,17 +99,18 @@ public class BlockFusedQuartz extends BlockEio {
|
||||
return renderId;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int getRenderBlockPass() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canRenderInPass(int pass) {
|
||||
FusedQuartzRenderer.renderPass = pass;
|
||||
return true;
|
||||
}
|
||||
//TODO:1.7 this makes it go splat
|
||||
// @Override
|
||||
// @SideOnly(Side.CLIENT)
|
||||
// public int getRenderBlockPass() {
|
||||
// return 1;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean canRenderInPass(int pass) {
|
||||
// FusedQuartzRenderer.renderPass = pass;
|
||||
// return true;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public int getLightOpacity(IBlockAccess world, int x, int y, int z) {
|
||||
|
||||
@@ -45,14 +45,14 @@ public class FusedQuartzRenderer implements ISimpleBlockRenderingHandler {
|
||||
public boolean renderWorldBlock(IBlockAccess blockAccess, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
|
||||
int meta = blockAccess.getBlockMetadata(x, y, z);
|
||||
//TODO:1.7 this makes it go splat
|
||||
if((meta == 0 && renderPass != 0) || (meta == 1 && renderPass == 0)) {
|
||||
TileEntityPaintedBlock tecb = null;
|
||||
TileEntity te = blockAccess.getTileEntity(x, y, z);
|
||||
if(te instanceof TileEntityPaintedBlock) {
|
||||
tecb = (TileEntityPaintedBlock) te;
|
||||
}
|
||||
renderFrame(blockAccess, x, y, z, tecb, false, meta);
|
||||
//if((meta == 0 && renderPass != 0) || (meta == 1 && renderPass == 0)) {
|
||||
TileEntityPaintedBlock tecb = null;
|
||||
TileEntity te = blockAccess.getTileEntity(x, y, z);
|
||||
if(te instanceof TileEntityPaintedBlock) {
|
||||
tecb = (TileEntityPaintedBlock) te;
|
||||
}
|
||||
renderFrame(blockAccess, x, y, z, tecb, false, meta);
|
||||
// }
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user