EnderIO compat hopefully fixes #9

This commit is contained in:
Cricket committed 2015-01-02 17:26:12 -05:00
1 parent 6b0005df79
commit 19669b587b
3 files changed
+17 -22

No files matched your search

@@ -1,10 +1,9 @@
package com.cricketcraft.chisel.client.render;
import com.cricketcraft.chisel.api.IFacade;
import net.minecraft.block.Block;
import net.minecraft.world.IBlockAccess;
import com.cricketcraft.chisel.api.IFacade;
public class CTM
{
static int submaps[][] = {
@@ -260,7 +259,7 @@ public class CTM
return texture;
}
private static boolean isConnected(IBlockAccess world, int x, int y, int z, int side, Block block, int meta)
protected static boolean isConnected(IBlockAccess world, int x, int y, int z, int side, Block block, int meta)
{
int x2 = x, y2 = y, z2 = z;
@@ -291,7 +290,7 @@ public class CTM
return getBlockOrFacade(world, x, y, z, side).equals(block) && getBlockOrFacadeMetadata(world, x, y, z, side) == meta && (!getBlockOrFacade(world, x2, y2, z2, side).equals(block) || getBlockOrFacadeMetadata(world, x2, y2, z2, side) != meta);
}
private static int getBlockOrFacadeMetadata(IBlockAccess world, int x, int y, int z, int side) {
protected static int getBlockOrFacadeMetadata(IBlockAccess world, int x, int y, int z, int side) {
Block blk = world.getBlock(x, y, z);
if(blk instanceof IFacade) {
return ((IFacade)blk).getFacadeMetadata(world, x, y, z, side);
@@ -299,7 +298,7 @@ public class CTM
return world.getBlockMetadata(x, y, z);
}
private static Block getBlockOrFacade(IBlockAccess world, int x, int y, int z, int side) {
protected static Block getBlockOrFacade(IBlockAccess world, int x, int y, int z, int side) {
Block blk = world.getBlock(x, y, z);
if(blk instanceof IFacade) {
blk = ((IFacade)blk).getFacade(world, x, y, z, side);
@@ -19,7 +19,6 @@ public class RenderBlocksColumn extends RenderBlocks
boolean connected(IBlockAccess world, int x, int y, int z, Block block, int meta)
{
return world.getBlock(x, y, z).equals(block) && world.getBlockMetadata(x, y, z) == meta;
}
@Override