geforkt von Mirrors/Paper
clone itemstack to return remaining stack (#6353)
Dieser Commit ist enthalten in:
Ursprung
77aea984df
Commit
835479f878
@ -21,6 +21,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
stack = ItemStack.EMPTY;
|
stack = ItemStack.EMPTY;
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ } else {
|
+ } else {
|
||||||
|
+ stack = stack.copy(); // Paper - copy stack to return leftover stack
|
||||||
+ stack.setCount(originalCount - stack.getCount());
|
+ stack.setCount(originalCount - stack.getCount());
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren