Platform blocks now accept any solid block. This includes chisel's but they won't have connected textures.

This commit is contained in:
Lizbeth Rika committed 2015-07-08 18:11:53 +01:00
1 parent 19f80d1a34
commit 286120f3e3
1 file changed
+2 -2
@@ -43,7 +43,7 @@ public abstract class BlockCamo extends BlockModContainer<TileCamo> {
if(tile instanceof TileCamo) {
TileCamo camo = (TileCamo) tile;
Block block = camo.camo;
if(block != null && isValidRenderType(block.getRenderType()))
if(block != null && (block.isOpaqueCube() || isValidRenderType(block.getRenderType())))
return block.getIcon(side, camo.camoMeta);
}
@@ -75,7 +75,7 @@ public abstract class BlockCamo extends BlockModContainer<TileCamo> {
}
block = Block.getBlockFromItem(currentStack.getItem());
if(block == null || !isValidRenderType(block.getRenderType()) || block instanceof BlockCamo || block.getMaterial() == Material.air)
if(block == null || !(isValidRenderType(block.getRenderType()) || block.isOpaqueCube()) || block instanceof BlockCamo || block.getMaterial() == Material.air)
doChange = false;
}
}