mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-1569: Remove negative itemstack data filtering
By: md_5 <git@md-5.net>
This commit is contained in:
parent
bce53b72eb
commit
c964d0499b
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…
Reference in a new issue