Allowed fused quartz and quite clear glass to be used as facades. Tweaked new quite clear glass texture.

This commit is contained in:
CrazyPants committed 2014-11-26 19:50:14 +08:00
1 parent 50c1873afb
commit a770eb7401
4 files changed
+8

No files matched your search

@@ -56,6 +56,11 @@ public class FacadeRenderer implements IItemRenderer {
// Render the facade block
RenderUtil.bindBlockTexture();
if(!block.isOpaqueCube()) {
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
}
if("appeng.block.solids.BlockSkyStone".equals(block.getClass().getName())) {
//Yes, this is a horrible hack, but stumped as to why it is rendered invisible if this isn't done.
renderBlocks.setOverrideBlockTexture(block.getIcon(0, PainterUtil.getSourceBlockMetadata(item)));
@@ -151,6 +151,9 @@ public class ItemConduitFacade extends Item implements IAdvancedTooltipProvider
if(!Config.allowTileEntitiesAsPaintSource && block instanceof ITileEntityProvider) {
return false;
}
if(block == EnderIO.blockFusedQuartz && paintSource.getItemDamage() < 2) {
return true;
}
return block.getRenderType() == 0 || block.isOpaqueCube() || block.isNormalCube();
}