summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ItemStack.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemStack.java')
-rw-r--r--src/main/java/net/minecraft/server/ItemStack.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java
index 09b46789..e98836df 100644
--- a/src/main/java/net/minecraft/server/ItemStack.java
+++ b/src/main/java/net/minecraft/server/ItemStack.java
@@ -151,14 +151,12 @@ public final class ItemStack {
public void setData(int i) {
// CraftBukkit start - filter out data for items that shouldn't have it
if (!this.usesData()) {
- this.damage = 0;
- return;
+ i = 0;
}
// Filter wool to avoid confusing the client
if (this.id == Block.WOOL.id) {
- this.damage = Math.min(15, i);
- return;
+ i = Math.min(15, i);
}
// CraftBukkit end