Fix ItemStack.damage OBFHelper (fixes #1036)

This commit is contained in:
Shane Freeder 2018-03-08 19:41:00 +00:00
parent cdc1dcf02e
commit af94fec5af
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
From 4357408fd9a9e9858748a05a50c7bcdc653ed50a Mon Sep 17 00:00:00 2001 From 1d583f46df6cfbc3888496aeb092515d183a3ffe Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co> From: Aikar <aikar@aikar.co>
Date: Wed, 20 Dec 2017 17:36:49 -0500 Date: Wed, 20 Dec 2017 17:36:49 -0500
Subject: [PATCH] Ability to apply mending to XP API Subject: [PATCH] Ability to apply mending to XP API
@ -52,7 +52,7 @@ index ff5cc74ba..1c59fd966 100644
return i * 2; return i * 2;
} }
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java
index 52cb34abd..45c8e4b1e 100644 index 52cb34abd..d1ff97a9e 100644
--- a/src/main/java/net/minecraft/server/ItemStack.java --- a/src/main/java/net/minecraft/server/ItemStack.java
+++ b/src/main/java/net/minecraft/server/ItemStack.java +++ b/src/main/java/net/minecraft/server/ItemStack.java
@@ -28,7 +28,7 @@ public final class ItemStack { @@ -28,7 +28,7 @@ public final class ItemStack {
@ -60,7 +60,7 @@ index 52cb34abd..45c8e4b1e 100644
private NBTTagCompound tag; private NBTTagCompound tag;
private boolean g; private boolean g;
- private int damage; - private int damage;
+ private int damage; public void setDamage(int i) { this.damage = 0; } // Paper - OBFHELPER + private int damage; public void setDamage(int i) { this.damage = i; } // Paper - OBFHELPER
private EntityItemFrame i; private EntityItemFrame i;
private Block j; private Block j;
private boolean k; private boolean k;
@ -123,5 +123,5 @@ index 428b208ae..21631c588 100644
} }
-- --
2.16.1 2.16.2