mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-01-03 22:37:41 +01:00
Fix for disabling the Item stacking feature.
This commit is contained in:
parent
0904b2b36c
commit
3d20eff4d9
@ -31,10 +31,10 @@ public class ItemListeners implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onMerge(ItemMergeEvent event) {
|
||||
event.setCancelled(true);
|
||||
|
||||
int maxItemStackSize = Setting.MAX_STACK_ITEMS.getInt();
|
||||
if (!Setting.STACK_ITEMS.getBoolean()) return;
|
||||
|
||||
event.setCancelled(true);
|
||||
|
||||
Item item = event.getTarget();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user