mirror of
https://github.com/rockyhawk64/CommandPanels.git
synced 2025-11-18 07:14:17 +01:00
fix itemstack amount error when pickup item with middle panel.
This commit is contained in:
parent
6a1baec138
commit
58714c8507
@ -136,7 +136,7 @@ public class InventorySaver implements Listener {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
if(cont.get(i).isSimilar(item)){
|
||||
if(cont.get(i).getAmount() < cont.get(i).getMaxStackSize() && cont.get(i).isSimilar(item)){
|
||||
cont.get(i).setAmount(cont.get(i).getAmount() + item.getAmount());
|
||||
found = true;
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user