mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 08:32:07 -07:00
SPIGOT-1569: Remove negative itemstack data filtering
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user