fix itemstack amount error when pickup item with middle panel.

This commit is contained in:
Catnies 2025-05-18 02:04:32 +08:00
parent 6a1baec138
commit 58714c8507

View File

@ -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;