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

@ -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);
}