mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-25 18:48:24 +01:00
Fix NPE in BUY signs
This commit is contained in:
parent
a34c92d55a
commit
02ee314ab1
@ -15,6 +15,10 @@ public class FakeInventory implements Inventory
|
||||
this.items = new ItemStack[items.length];
|
||||
for (int i = 0; i < items.length; i++)
|
||||
{
|
||||
if (items[i] == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
this.items[i] = new ItemStack(items[i].getTypeId(), items[i].getAmount(), items[i].getDurability());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user