Spatial generation and frame bucket fix. ( ender pearl fix required? )
This commit is contained in:
parent
c821ab2833
commit
f34f20d150
2 changed files with 13 additions and 7 deletions
|
@ -22,7 +22,7 @@ public class BlockMatrixFrame extends AEBaseBlock implements ICustomCollision
|
||||||
{
|
{
|
||||||
|
|
||||||
public BlockMatrixFrame() {
|
public BlockMatrixFrame() {
|
||||||
super( BlockMatrixFrame.class, Material.portal );
|
super( BlockMatrixFrame.class, Material.anvil);
|
||||||
setfeature( EnumSet.of( AEFeature.SpatialIO ) );
|
setfeature( EnumSet.of( AEFeature.SpatialIO ) );
|
||||||
setResistance( 6000000.0F );
|
setResistance( 6000000.0F );
|
||||||
setBlockUnbreakable();
|
setBlockUnbreakable();
|
||||||
|
|
|
@ -15,17 +15,23 @@ import appeng.core.AEConfig;
|
||||||
public class StorageChunkProvider extends ChunkProviderGenerate implements IChunkProvider
|
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;
|
World w;
|
||||||
|
|
||||||
public StorageChunkProvider(World wrd, long i) {
|
public StorageChunkProvider(World wrd, long i) {
|
||||||
super( wrd, i, false );
|
super( wrd, i, false );
|
||||||
this.w = wrd;
|
this.w = wrd;
|
||||||
|
|
||||||
Block matrixFrame = AEApi.instance().blocks().blockMatrixFrame.block();
|
|
||||||
|
|
||||||
for (int x = 0; x < ablock.length; x++)
|
|
||||||
ablock[x] = matrixFrame;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue