mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-21 05:51:56 +02:00
Don't add items with an amount of 0 or lower to the inventory.
This commit is contained in:
@@ -80,7 +80,7 @@ public final class InventoryWorkaround
|
||||
ItemStack[] combined = new ItemStack[items.length];
|
||||
for (int i = 0; i < items.length; i++)
|
||||
{
|
||||
if (items[i] == null)
|
||||
if (items[i] == null || items[i].getAmount() < 1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user