mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02:00
NPE fix in InventoryWorkaround
This commit is contained in:
@@ -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?
|
||||||
|
Reference in New Issue
Block a user