From 0828e965c6f28403ff8aedc16cf658c5df54bdb0 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 12 Feb 2016 12:49:32 -0800 Subject: [PATCH] Fix NPE when setting position of Teleposition Focus (#609) --- .../java/WayofTime/bloodmagic/item/ItemTelepositionFocus.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/WayofTime/bloodmagic/item/ItemTelepositionFocus.java b/src/main/java/WayofTime/bloodmagic/item/ItemTelepositionFocus.java index e1552b2b..3c58dc25 100644 --- a/src/main/java/WayofTime/bloodmagic/item/ItemTelepositionFocus.java +++ b/src/main/java/WayofTime/bloodmagic/item/ItemTelepositionFocus.java @@ -98,6 +98,7 @@ public class ItemTelepositionFocus extends ItemBindable public ItemStack setBlockPos(ItemStack stack, World world, BlockPos pos) { + stack = NBTHelper.checkNBT(stack); NBTTagCompound itemTag = stack.getTagCompound(); itemTag.setInteger(Constants.NBT.X_COORD, pos.getX()); itemTag.setInteger(Constants.NBT.Y_COORD, pos.getY());