mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 15:42:19 -07:00
Update to Minecraft 1.13.2
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user