re-add missing API

This commit is contained in:
jascotty2 2019-08-27 09:35:48 -05:00
parent 2b192929f8
commit 0f1b5acd08
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@ public class Methods {
|| !blacklist.isEmpty() && blacklist.contains(combined);
}
// This function shouldn't change! This is the API that many plugins hook into!
public static void updateItemAmount(Item item, int newAmount) {
updateItemAmount(item, item.getItemStack(), newAmount);
}
public static void updateItemAmount(Item item, ItemStack itemStack, int newAmount) {
UltimateStacker plugin = UltimateStacker.getInstance();
Material material = itemStack.getType();