mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 04:23:02 +00:00
NPE fix in InventoryWorkaround
This commit is contained in:
parent
d2bc7e01a2
commit
7aea8a3fce
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue