mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-28 09:17:21 +01:00
SPIGOT-1569: Remove negative itemstack data filtering
This commit is contained in:
parent
5122dcd61e
commit
0f297b39be
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue