initial bugfix for taller chunks
This commit is contained in:
parent
caef42dc16
commit
7fd8a49d5c
6 changed files with 67 additions and 55 deletions
|
@ -392,7 +392,7 @@ public class Region {
|
|||
for(int n = 0; n < sects.tagCount(); ++n) {
|
||||
NBTTagCompound sect = sects.getCompoundTagAt(n);
|
||||
int y = sect.getInteger("Y");
|
||||
BlockArray storage = new BlockArray(y << 4, light);
|
||||
BlockArray storage = new BlockArray(y << 4, light, null);
|
||||
byte[] blocks = sect.getByteArray("Blocks");
|
||||
NibbleArray data = new NibbleArray(sect.getByteArray("Data"));
|
||||
NibbleArray adddata = sect.hasKey("Add", 7) ? new NibbleArray(sect.getByteArray("Add")) : null;
|
||||
|
@ -417,7 +417,7 @@ public class Region {
|
|||
if(y >= 0 && y < stor)
|
||||
sections[y] = storage;
|
||||
else if(y < 0)
|
||||
down[-down.length - y] = storage;
|
||||
down[down.length + y] = storage;
|
||||
else
|
||||
up[y - stor] = storage;
|
||||
}
|
||||
|
@ -510,8 +510,8 @@ public class Region {
|
|||
tag.setBoolean("LightPopulated", chunk.isLightPopulated());
|
||||
tag.setLong("InhabitedTime", chunk.getInhabited());
|
||||
BlockArray[] sections = chunk.getStorage();
|
||||
BlockArray[] down = chunk.getStorage();
|
||||
BlockArray[] up = chunk.getStorage();
|
||||
BlockArray[] down = chunk.getStorageDown();
|
||||
BlockArray[] up = chunk.getStorageUp();
|
||||
NBTTagList sects = new NBTTagList();
|
||||
boolean light = !world.dimension.hasNoLight();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue