Skip to content

Commit 2b04243

Browse files
use item.setAmount for .addAmount
Paper used to provide item.add(...), because of the switch to spigot, there is none does middle finger emoji in github exist? I wanna show it to spigot
1 parent 1a96d6e commit 2b04243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/flame/menus/items/ItemEditor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public ItemEditor setAmount(int amount) {
165165
* @return the builder for chaining
166166
*/
167167
public ItemEditor addAmount(int amount) {
168-
this.item.add(amount);
168+
this.item.setAmount(item.getAmount() + amount);
169169
return this;
170170
}
171171

0 commit comments

Comments
 (0)