Fixed altar crashing

This commit is contained in:
WayofTime 2016-03-07 06:30:58 -05:00
parent 126d17b55d
commit 4fd39b6348
3 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
------------------------------------------------------
Version 2.0.0-20
------------------------------------------------------
- Fixed Blood Altar crashing on odd occasions.
------------------------------------------------------
Version 2.0.0-19
------------------------------------------------------

View file

@ -276,7 +276,13 @@ public class EventHandler
@SubscribeEvent
public void onAltarCrafted(AltarCraftedEvent event)
{
if (event.getOutput().getItem() instanceof ItemInscriptionTool) {
if (event.getOutput() == null)
{
return;
}
if (event.getOutput().getItem() instanceof ItemInscriptionTool)
{
NBTHelper.checkNBT(event.getOutput());
event.getOutput().getTagCompound().setInteger(Constants.NBT.USES, 10);
}

View file

@ -359,6 +359,7 @@ ritual.BloodMagic.expulsionRitual=Aura of Expulsion
ritual.BloodMagic.zephyrRitual=Call of the Zephyr
ritual.BloodMagic.upgradeRemoveRitual=Sound of the Cleansing Soul
ritual.BloodMagic.armourEvolveRitual=Ritual of Living Evolution
ritual.BloodMagic.animalGrowthRitual=Ritual of the Shepherd
ritual.BloodMagic.cobblestoneRitual=Le Vulcanos Frigius
ritual.BloodMagic.placerRitual=The Filler