SPIGOT-1569: Remove negative itemstack data filtering

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-03-01 20:16:34 +11:00
parent bce53b72eb
commit c964d0499b

View file

@ -199,7 +199,7 @@
if (this.item != null) {
this.item.a(this.tag);
}
@@ -164,6 +304,26 @@
@@ -164,9 +304,29 @@
}
public void setData(int i) {
@ -225,7 +225,11 @@
+ // CraftBukkit end
this.damage = i;
if (this.damage < 0) {
this.damage = 0;
- this.damage = 0;
+ // this.damage = 0; // CraftBukkit - remove this.
}
}
@@ -216,6 +376,12 @@
this.count = 0;
}