mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
NPE fix in InventoryWorkaround
This commit is contained in:
parent
d2bc7e01a2
commit
7aea8a3fce
@ -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?
|
||||||
|
Loading…
Reference in New Issue
Block a user