Fix another null check crash (#1091)
This commit is contained in:
parent
7c8e9b6d8d
commit
c4f04b1589
2 changed files with 3 additions and 3 deletions
|
@ -135,8 +135,8 @@ public class PlayerDemonWillHandler
|
|||
*/
|
||||
public static ItemStack addDemonWill(EntityPlayer player, ItemStack willStack)
|
||||
{
|
||||
if (willStack == null)
|
||||
return null;
|
||||
if (willStack.isEmpty())
|
||||
return ItemStack.EMPTY;
|
||||
|
||||
NonNullList<ItemStack> inventory = player.inventory.mainInventory;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue