mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 23:45:57 +00:00
1.8.8 tess fixes, potential double plant fix, bunch of reflectoin in spawner claw
This commit is contained in:
1 parent
5d666cd891
commit
a9b060257f
67 files changed
+480
-240
No files matched your search
@@ -23,7 +23,6 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.common.block.tile.TileCamo;
|
||||
@@ -38,21 +37,6 @@ public abstract class BlockCamo extends BlockModContainer<TileCamo> {
|
||||
super(par2Material);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
|
||||
TileEntity tile = world.getTileEntity(x, y, z);
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
|
||||
if(tile instanceof TileCamo) {
|
||||
TileCamo camo = (TileCamo) tile;
|
||||
Block block = camo.camo;
|
||||
if(block != null && isValidBlock(block))
|
||||
return block.getIcon(side, camo.camoMeta);
|
||||
}
|
||||
|
||||
return getIconFromSideAfterCheck(tile, meta, side);
|
||||
}
|
||||
|
||||
public static boolean isValidBlock(Block block) {
|
||||
return block.isOpaqueCube() || isValidRenderType(block.getRenderType());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user