mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-01 18:23:00 +00:00
Fix NPE in BUY signs
This commit is contained in:
parent
a34c92d55a
commit
02ee314ab1
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue