Config for dropping items when slot limit is exceeded.

This commit is contained in:
MobiusDev
2018-09-10 17:11:00 +00:00
parent 1de5ae72bf
commit 3ae533f32d
24 changed files with 64 additions and 8 deletions

View File

@@ -840,7 +840,7 @@ public class PcInventory extends Inventory
public boolean validateCapacity(long slots, boolean questItem)
{
return (slots == 0) || questItem ? (getSize(item -> item.isQuestItem()) + slots) <= _owner.getQuestInventoryLimit() : (getSize(item -> !item.isQuestItem()) + slots) <= _owner.getInventoryLimit();
return ((slots == 0) && !Config.AUTO_LOOT_SLOT_LIMIT) || questItem ? (getSize(item -> item.isQuestItem()) + slots) <= _owner.getQuestInventoryLimit() : (getSize(item -> !item.isQuestItem()) + slots) <= _owner.getInventoryLimit();
}
@Override