diff options
author | Erik Broes <erikbroes@grum.nl> | 2012-01-14 21:03:48 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-15 10:52:37 +0100 |
commit | 61ec751ca11f5bff9ec2dd1644982d5628270004 (patch) | |
tree | 8829269e1c5807b55566d367bec5ee630d5dfb1d /src/main/java/net/minecraft/server/Packet51MapChunk.java | |
parent | 6495eee0c9fddcce2c2aa9bf9c45118abea180c1 (diff) | |
download | craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar.gz craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar.lz craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar.xz craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.zip |
Update for 1.1_01 renames.
We know these updates (can) break plugins bypassing Bukkit. They are needed for
smooth updates however. There will be another one right before before 1.1-R1.
Diffstat (limited to 'src/main/java/net/minecraft/server/Packet51MapChunk.java')
-rw-r--r-- | src/main/java/net/minecraft/server/Packet51MapChunk.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/main/java/net/minecraft/server/Packet51MapChunk.java b/src/main/java/net/minecraft/server/Packet51MapChunk.java index cdc91188..3acdba76 100644 --- a/src/main/java/net/minecraft/server/Packet51MapChunk.java +++ b/src/main/java/net/minecraft/server/Packet51MapChunk.java @@ -20,7 +20,7 @@ public class Packet51MapChunk extends Packet { public byte[] rawData; // CraftBukkit public Packet51MapChunk() { - this.l = true; + this.lowPriority = true; } // CraftBukkit start @@ -30,26 +30,27 @@ public class Packet51MapChunk extends Packet { public Packet51MapChunk(int i, int j, int k, int l, int i1, int j1, byte[] data) { // CraftBukkit end - this.l = true; + this.lowPriority = true; this.a = i; this.b = j; this.c = k; this.d = l; this.e = i1; this.f = j1; - /* CraftBukkit - Moved compression into its own method. + /* CraftBukkit start - Moved compression into its own method. byte[] abyte = data; // CraftBukkit - uses data from above constructor Deflater deflater = new Deflater(-1); try { deflater.setInput(abyte); deflater.finish(); - this.g = new byte[l * i1 * j1 * 5 / 2]; - this.h = deflater.deflate(this.g); + this.buffer = new byte[l * i1 * j1 * 5 / 2]; + this.size = deflater.deflate(this.buffer); } finally { deflater.end(); - }*/ - this.rawData = data; // CraftBukkit + } */ + this.rawData = data; + // CraftBukkit end } public void a(DataInputStream datainputstream) throws IOException { // CraftBukkit - throws IOEXception @@ -88,7 +89,7 @@ public class Packet51MapChunk extends Packet { dataoutputstream.write(this.buffer, 0, this.size); } - public void a(NetHandler nethandler) { + public void handle(NetHandler nethandler) { nethandler.a(this); } |