Implement Fake AE Controller with the new ISubmapManager system

This commit is contained in:
tterrag1098 committed 2015-04-22 21:04:40 -04:00
1 parent 0139a894f0
commit 4f70831d35
16 files changed
+124 -85

No files matched your search

@@ -10,14 +10,15 @@ public class RenderBlocksColumn extends RenderBlocks {
TextureSubmap submap;
IIcon iconTop;
IIcon sides[] = new IIcon[6];
CTM ctm = CTM.getInstance();
RenderBlocksColumn() {
super();
}
boolean connected(IBlockAccess world, int x, int y, int z, Block block, int meta) {
Block inWorld = CTM.getBlockOrFacade(world, x, y, z, -1);
return inWorld != null && inWorld.equals(block) && CTM.getBlockOrFacadeMetadata(world, x, y, z, -1) == meta;
Block inWorld = ctm.getBlockOrFacade(world, x, y, z, -1);
return inWorld != null && inWorld.equals(block) && ctm.getBlockOrFacadeMetadata(world, x, y, z, -1) == meta;
}
@Override