mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-18 19:29:34 +00:00
commit
2f47ffa955
3 files changed
+8
-3
No files matched your search
@@ -379,7 +379,12 @@ public class SoulNetworkHandler
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean checkAndSetItemOwner(ItemStack item, EntityPlayer player)
|
||||
public static void checkAndSetItemOwner(ItemStack item, EntityPlayer player)
|
||||
{
|
||||
checkAndSetItemPlayer(item, player);
|
||||
}
|
||||
|
||||
public static boolean checkAndSetItemPlayer(ItemStack item, EntityPlayer player)
|
||||
{
|
||||
if (item.hasTagCompound() && !item.getTagCompound().getString("ownerName").equals("")) return true;
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ public class BlockTeleposer extends BlockContainer
|
||||
{
|
||||
if (playerItem.getItem() instanceof TelepositionFocus)
|
||||
{
|
||||
SoulNetworkHandler.checkAndSetItemOwner(playerItem, player);
|
||||
SoulNetworkHandler.checkAndSetItemPlayer(playerItem, player);
|
||||
|
||||
if (playerItem.getTagCompound() == null)
|
||||
{
|
||||
|
||||
@@ -187,7 +187,7 @@ public class EnergyItems extends Item implements IBindable
|
||||
public static boolean checkAndSetItemOwner(ItemStack item, EntityPlayer player)
|
||||
{
|
||||
if (SpellHelper.isFakePlayer(player)) return false;
|
||||
return SoulNetworkHandler.checkAndSetItemOwner(item, player);
|
||||
return SoulNetworkHandler.checkAndSetItemPlayer(item, player);
|
||||
}
|
||||
|
||||
public static void setItemOwner(ItemStack item, String ownerName)
|
||||
|
||||
Reference in new issue
Block a user