NPE fix in InventoryWorkaround

This commit is contained in:
snowleo 2011-07-18 22:39:01 +02:00
parent d2bc7e01a2
commit 7aea8a3fce

View File

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