mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
Update to Minecraft 1.9
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
--- a/net/minecraft/server/ChunkSection.java
|
||||
+++ b/net/minecraft/server/ChunkSection.java
|
||||
@@ -19,6 +19,18 @@
|
||||
@@ -19,6 +19,24 @@
|
||||
|
||||
}
|
||||
|
||||
+ // CraftBukkit start
|
||||
+ public ChunkSection(int y, boolean flag, char[] blockIds) {
|
||||
+ this.yPos = y;
|
||||
+ this.blockIds = blockIds;
|
||||
+ 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]));
|
||||
+ }
|
||||
+ this.emittedLight = new NibbleArray();
|
||||
+ if (flag) {
|
||||
+ this.skyLight = new NibbleArray();
|
||||
@@ -17,5 +23,5 @@
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
public IBlockData getType(int i, int j, int k) {
|
||||
IBlockData iblockdata = (IBlockData) Block.d.a(this.blockIds[j << 8 | k << 4 | i]);
|
||||
|
||||
return this.blockIds.a(i, j, k);
|
||||
}
|
||||
|
Reference in New Issue
Block a user