mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Platform blocks now accept any solid block. This includes chisel's but they won't have connected textures.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user