mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
Allowed fused quartz and quite clear glass to be used as facades. Tweaked new quite clear glass texture.
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user