mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-07 19:19:32 +01:00
re-add missing API
This commit is contained in:
parent
2b192929f8
commit
0f1b5acd08
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user