Update to Minecraft 1.13.2
By: md_5 <git@md-5.net>
This commit is contained in:
parent
6fe7587c8f
commit
a194267323
47 changed files with 184 additions and 262 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue