Spatial generation and frame bucket fix. ( ender pearl fix required? )

This commit is contained in:
AlgorithmX2 2014-07-02 18:20:42 -05:00
parent c821ab2833
commit f34f20d150
2 changed files with 13 additions and 7 deletions

View file

@ -22,7 +22,7 @@ public class BlockMatrixFrame extends AEBaseBlock implements ICustomCollision
{
public BlockMatrixFrame() {
super( BlockMatrixFrame.class, Material.portal );
super( BlockMatrixFrame.class, Material.anvil);
setfeature( EnumSet.of( AEFeature.SpatialIO ) );
setResistance( 6000000.0F );
setBlockUnbreakable();

View file

@ -15,17 +15,23 @@ import appeng.core.AEConfig;
public class StorageChunkProvider extends ChunkProviderGenerate implements IChunkProvider
{
Block[] ablock = new Block[32768];
final static Block[] ablock;
static {
ablock = new Block[255 * 256];
Block matrixFrame = AEApi.instance().blocks().blockMatrixFrame.block();
for (int x = 0; x < ablock.length; x++)
ablock[x] = matrixFrame;
}
World w;
public StorageChunkProvider(World wrd, long i) {
super( wrd, i, false );
this.w = wrd;
Block matrixFrame = AEApi.instance().blocks().blockMatrixFrame.block();
for (int x = 0; x < ablock.length; x++)
ablock[x] = matrixFrame;
}
@Override