From d7aef463d1c511e4459bef2f57988f77a33f2ca6 Mon Sep 17 00:00:00 2001 From: jascotty2 Date: Tue, 27 Aug 2019 10:03:39 -0500 Subject: [PATCH] this needs to be reworked at some point. --- src/main/java/com/songoda/ultimatestacker/utils/Methods.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/songoda/ultimatestacker/utils/Methods.java b/src/main/java/com/songoda/ultimatestacker/utils/Methods.java index a71b0db..b0a9ea9 100644 --- a/src/main/java/com/songoda/ultimatestacker/utils/Methods.java +++ b/src/main/java/com/songoda/ultimatestacker/utils/Methods.java @@ -100,6 +100,7 @@ public class Methods { // This function shouldn't change! This is the API that many plugins hook into! public static void updateItemAmount(Item item, int newAmount) { + item.getItemStack().setAmount(Math.min(32, newAmount)); updateItemAmount(item, item.getItemStack(), newAmount); }