Fixed altar crashing
This commit is contained in:
parent
126d17b55d
commit
4fd39b6348
3 changed files with 13 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue