mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 11:36:24 +00:00
Don't add items with an amount of 0 or lower to the inventory.
This commit is contained in:
parent
d95d7745ad
commit
5346b112a4
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ public final class InventoryWorkaround
|
||||||
ItemStack[] combined = new ItemStack[items.length];
|
ItemStack[] combined = new ItemStack[items.length];
|
||||||
for (int i = 0; i < items.length; i++)
|
for (int i = 0; i < items.length; i++)
|
||||||
{
|
{
|
||||||
if (items[i] == null)
|
if (items[i] == null || items[i].getAmount() < 1)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue