Archiviert
13
0

SPIGOT-1569: Remove negative itemstack data filtering

Dieser Commit ist enthalten in:
md_5 2016-03-01 20:16:34 +11:00
Ursprung 5122dcd61e
Commit 0f297b39be

Datei anzeigen

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