From a35aced93acb495771bfbba75a5fac85dcd8674d Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 18 Feb 2016 09:51:58 -0800 Subject: [PATCH] Check if owner is set before syphoning --- src/main/java/WayofTime/bloodmagic/item/ItemBindable.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/WayofTime/bloodmagic/item/ItemBindable.java b/src/main/java/WayofTime/bloodmagic/item/ItemBindable.java index fc9a5519..2248ba9b 100644 --- a/src/main/java/WayofTime/bloodmagic/item/ItemBindable.java +++ b/src/main/java/WayofTime/bloodmagic/item/ItemBindable.java @@ -60,6 +60,10 @@ public class ItemBindable extends Item implements IBindable { IBindable itemBindable = (IBindable) stack.getItem(); String owner = itemBindable.getOwnerUUID(stack); + + if (Strings.isNullOrEmpty(owner)) + return false; + SoulNetwork network = NetworkHelper.getSoulNetwork(owner); return NetworkHelper.syphonAndDamage(network, player, lpUsed); }