Fixed altar crashing
This commit is contained in:
parent
126d17b55d
commit
4fd39b6348
|
@ -1,3 +1,8 @@
|
||||||
|
------------------------------------------------------
|
||||||
|
Version 2.0.0-20
|
||||||
|
------------------------------------------------------
|
||||||
|
- Fixed Blood Altar crashing on odd occasions.
|
||||||
|
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
Version 2.0.0-19
|
Version 2.0.0-19
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
|
|
|
@ -276,7 +276,13 @@ public class EventHandler
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onAltarCrafted(AltarCraftedEvent event)
|
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());
|
NBTHelper.checkNBT(event.getOutput());
|
||||||
event.getOutput().getTagCompound().setInteger(Constants.NBT.USES, 10);
|
event.getOutput().getTagCompound().setInteger(Constants.NBT.USES, 10);
|
||||||
}
|
}
|
||||||
|
|
|
@ -359,6 +359,7 @@ ritual.BloodMagic.expulsionRitual=Aura of Expulsion
|
||||||
ritual.BloodMagic.zephyrRitual=Call of the Zephyr
|
ritual.BloodMagic.zephyrRitual=Call of the Zephyr
|
||||||
ritual.BloodMagic.upgradeRemoveRitual=Sound of the Cleansing Soul
|
ritual.BloodMagic.upgradeRemoveRitual=Sound of the Cleansing Soul
|
||||||
ritual.BloodMagic.armourEvolveRitual=Ritual of Living Evolution
|
ritual.BloodMagic.armourEvolveRitual=Ritual of Living Evolution
|
||||||
|
ritual.BloodMagic.animalGrowthRitual=Ritual of the Shepherd
|
||||||
|
|
||||||
ritual.BloodMagic.cobblestoneRitual=Le Vulcanos Frigius
|
ritual.BloodMagic.cobblestoneRitual=Le Vulcanos Frigius
|
||||||
ritual.BloodMagic.placerRitual=The Filler
|
ritual.BloodMagic.placerRitual=The Filler
|
||||||
|
|
Loading…
Reference in a new issue