Fix item placement
This commit is contained in:
parent
661afb43c3
commit
90f1059bae
@ -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);
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user