Add 1.9.1 support.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
4fbcead283
commit
19e357e11a
5 changed files with 71 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
--- a/net/minecraft/server/PacketDataSerializer.java
|
||||
+++ b/net/minecraft/server/PacketDataSerializer.java
|
||||
@@ -20,6 +20,8 @@
|
||||
@@ -20,9 +20,12 @@
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.UUID;
|
||||
|
||||
|
@ -9,7 +9,11 @@
|
|||
public class PacketDataSerializer extends ByteBuf {
|
||||
|
||||
private final ByteBuf a;
|
||||
@@ -44,8 +46,16 @@
|
||||
+ int version = 107; // CraftBukkkit
|
||||
|
||||
public PacketDataSerializer(ByteBuf bytebuf) {
|
||||
this.a = bytebuf;
|
||||
@@ -44,8 +47,16 @@
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -27,7 +31,7 @@
|
|||
|
||||
this.readBytes(abyte);
|
||||
return abyte;
|
||||
@@ -99,7 +109,7 @@
|
||||
@@ -99,7 +110,7 @@
|
||||
}
|
||||
|
||||
public <T extends Enum<T>> T a(Class<T> oclass) {
|
||||
|
@ -36,7 +40,7 @@
|
|||
}
|
||||
|
||||
public PacketDataSerializer a(Enum<?> oenum) {
|
||||
@@ -176,7 +186,7 @@
|
||||
@@ -176,7 +187,7 @@
|
||||
} else {
|
||||
try {
|
||||
NBTCompressedStreamTools.a(nbttagcompound, (DataOutput) (new ByteBufOutputStream(this)));
|
||||
|
@ -45,7 +49,7 @@
|
|||
throw new EncoderException(ioexception);
|
||||
}
|
||||
}
|
||||
@@ -202,7 +212,7 @@
|
||||
@@ -202,7 +213,7 @@
|
||||
}
|
||||
|
||||
public PacketDataSerializer a(ItemStack itemstack) {
|
||||
|
@ -54,7 +58,7 @@
|
|||
this.writeShort(-1);
|
||||
} else {
|
||||
this.writeShort(Item.getId(itemstack.getItem()));
|
||||
@@ -230,6 +240,11 @@
|
||||
@@ -230,6 +241,11 @@
|
||||
|
||||
itemstack = new ItemStack(Item.getById(short0), b0, short1);
|
||||
itemstack.setTag(this.j());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue