2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/ChunkSection.java
|
|
|
|
+++ b/net/minecraft/server/ChunkSection.java
|
2016-02-29 22:32:46 +01:00
|
|
|
@@ -19,6 +19,24 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ public ChunkSection(int y, boolean flag, char[] blockIds) {
|
|
|
|
+ this.yPos = y;
|
2016-02-29 22:32:46 +01:00
|
|
|
+ this.blockIds = new DataPaletteBlock();
|
|
|
|
+ for (int i = 0; i < blockIds.length; i++) {
|
|
|
|
+ int xx = i & 15;
|
|
|
|
+ int yy = (i >> 8) & 15;
|
|
|
|
+ int zz = (i >> 4) & 15;
|
|
|
|
+ this.blockIds.setBlock(xx, yy, zz, Block.REGISTRY_ID.fromId(blockIds[i]));
|
|
|
|
+ }
|
2014-11-25 22:32:16 +01:00
|
|
|
+ this.emittedLight = new NibbleArray();
|
|
|
|
+ if (flag) {
|
|
|
|
+ this.skyLight = new NibbleArray();
|
|
|
|
+ }
|
|
|
|
+ recalcBlockCounts();
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
+
|
|
|
|
public IBlockData getType(int i, int j, int k) {
|
2016-02-29 22:32:46 +01:00
|
|
|
return this.blockIds.a(i, j, k);
|
|
|
|
}
|
2016-06-25 12:44:12 +02:00
|
|
|
@@ -46,7 +64,7 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean a() {
|
|
|
|
- return this.nonEmptyBlockCount == 0;
|
|
|
|
+ return false; // CraftBukkit - MC-80966
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean shouldTick() {
|