geforkt von Mirrors/Paper
Fix item placement
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
18cee9d332
Commit
a3b76ef171
@ -144,7 +144,7 @@
|
|||||||
+
|
+
|
||||||
+ if (!fertilizeEvent.isCancelled()) {
|
+ if (!fertilizeEvent.isCancelled()) {
|
||||||
+ // Change the stack to its new contents if it hasn't been tampered with.
|
+ // Change the stack to its new contents if it hasn't been tampered with.
|
||||||
+ if (this.getCount() == oldCount && Objects.equals(this.components, oldData)) {
|
+ if (this.getCount() == oldCount && Objects.equals(this.components.asPatch(), oldData)) {
|
||||||
+ this.restorePatch(newData);
|
+ this.restorePatch(newData);
|
||||||
+ this.setCount(newCount);
|
+ this.setCount(newCount);
|
||||||
+ }
|
+ }
|
||||||
@ -191,7 +191,7 @@
|
|||||||
+ ItemSign.openSign = null; // SPIGOT-6758 - Reset on early return
|
+ ItemSign.openSign = null; // SPIGOT-6758 - Reset on early return
|
||||||
+ } else {
|
+ } else {
|
||||||
+ // Change the stack to its new contents if it hasn't been tampered with.
|
+ // Change the stack to its new contents if it hasn't been tampered with.
|
||||||
+ if (this.getCount() == oldCount && Objects.equals(this.components, oldData)) {
|
+ if (this.getCount() == oldCount && Objects.equals(this.components.asPatch(), oldData)) {
|
||||||
+ this.restorePatch(newData);
|
+ this.restorePatch(newData);
|
||||||
+ this.setCount(newCount);
|
+ this.setCount(newCount);
|
||||||
+ }
|
+ }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren