More null stack fixes
This commit is contained in:
parent
c682571be0
commit
5475549c18
10 changed files with 49 additions and 50 deletions
|
@ -127,7 +127,7 @@ public class TileMimic extends TileInventory implements ITickable
|
|||
//The potion flask is empty, therefore we have to reset the stored potion.
|
||||
if (!world.isRemote)
|
||||
{
|
||||
setInventorySlotContents(1, null);
|
||||
setInventorySlotContents(1, ItemStack.EMPTY);
|
||||
world.notifyBlockUpdate(pos, state, state, 3);
|
||||
ChatUtil.sendNoSpam(player, new TextComponentTranslation("chat.bloodmagic.mimic.potionRemove"));
|
||||
}
|
||||
|
|
|
@ -223,7 +223,7 @@ public class TileSoulForge extends TileInventory implements ITickable, IDemonWil
|
|||
double souls = soul.drainWill(type, soulStack, requested);
|
||||
if (soul.getWill(type, soulStack) <= 0)
|
||||
{
|
||||
setInventorySlotContents(soulSlot, null);
|
||||
setInventorySlotContents(soulSlot, ItemStack.EMPTY);
|
||||
}
|
||||
return souls;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue