1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 12:31:26 +02:00

NPE fix in InventoryWorkaround

This commit is contained in:
snowleo
2011-07-18 22:39:01 +02:00
parent f0e01dbd91
commit c1ac4f375d

View File

@@ -103,6 +103,11 @@ public final class InventoryWorkaround
for (int i = 0; i < combined.length; i++) for (int i = 0; i < combined.length; i++)
{ {
final ItemStack item = combined[i]; final ItemStack item = combined[i];
if (item == null)
{
continue;
}
while (true) while (true)
{ {
// Do we already have a stack of it? // Do we already have a stack of it?