Fix same error in CTMV...

This commit is contained in:
tterrag1098 committed 2015-05-12 13:30:23 -04:00
1 parent 319e80a065
commit fb70c66184
1 file changed
+3 -3
@@ -73,15 +73,15 @@ public enum TextureType {
@Override
protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, IBlockAccess world, int x, int y, int z, int side, int meta) {
Pair<IIcon, TextureSubmap> data = (Pair<IIcon, TextureSubmap>) cachedObject;
Pair<TextureSubmap, IIcon> data = (Pair<TextureSubmap, IIcon>) cachedObject;
if (side < 2)
return data.getLeft();
return data.getRight();
Block block = world.getBlock(x, y, z);
boolean topConnected = ctm.isConnected(world, x, y + 1, z, side, block, meta);
boolean botConnected = ctm.isConnected(world, x, y - 1, z, side, block, meta);
TextureSubmap map = data.getRight();
TextureSubmap map = data.getLeft();
if (topConnected && botConnected)
return map.getSubIcon(0, 1);
if (topConnected && !botConnected)