Update to Minecraft 1.13.2

This commit is contained in:
md_5
2018-10-23 06:00:00 +11:00
parent a639ae44d2
commit b4230a9a7e
47 changed files with 184 additions and 262 deletions

View File

@@ -33,11 +33,11 @@
public PacketDataSerializer a(ItemStack itemstack) {
- if (itemstack.isEmpty()) {
+ if (itemstack.isEmpty() || itemstack.getItem() == null) { // CraftBukkit - NPE fix itemstack.getItem()
this.writeShort(-1);
this.writeBoolean(false);
} else {
Item item = itemstack.getItem();
this.writeBoolean(true);
@@ -263,6 +265,11 @@
ItemStack itemstack = new ItemStack(Item.getById(short0), b0);
ItemStack itemstack = new ItemStack(Item.getById(i), b0);
itemstack.setTag(this.j());
+ // CraftBukkit start