Prevent modification of ItemStack.EMPTY's NBT (#1502)
* Prevent modification of ItemStack.EMPTY's NBT * Use ItemStack#isEmpty() instead of comparing to ItemStack.EMPTY
This commit is contained in:
parent
db505903c9
commit
12efc07bab
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ public class BiomeEssenceRecipe extends net.minecraftforge.registries.IForgeRegi
|
|||
}
|
||||
}
|
||||
|
||||
if (biomeRadar != null && biomeEssence != null)
|
||||
if (!biomeRadar.isEmpty() && !biomeEssence.isEmpty())
|
||||
{
|
||||
if (!biomeEssence.hasTagCompound() || !biomeEssence.getTagCompound().hasKey("biomeID")) return false;
|
||||
|
||||
|
@ -103,4 +103,4 @@ public class BiomeEssenceRecipe extends net.minecraftforge.registries.IForgeRegi
|
|||
{
|
||||
return width * height >= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue