commit
2f47ffa955
|
@ -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;
|
if (item.hasTagCompound() && !item.getTagCompound().getString("ownerName").equals("")) return true;
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class BlockTeleposer extends BlockContainer
|
||||||
{
|
{
|
||||||
if (playerItem.getItem() instanceof TelepositionFocus)
|
if (playerItem.getItem() instanceof TelepositionFocus)
|
||||||
{
|
{
|
||||||
SoulNetworkHandler.checkAndSetItemOwner(playerItem, player);
|
SoulNetworkHandler.checkAndSetItemPlayer(playerItem, player);
|
||||||
|
|
||||||
if (playerItem.getTagCompound() == null)
|
if (playerItem.getTagCompound() == null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -187,7 +187,7 @@ public class EnergyItems extends Item implements IBindable
|
||||||
public static boolean checkAndSetItemOwner(ItemStack item, EntityPlayer player)
|
public static boolean checkAndSetItemOwner(ItemStack item, EntityPlayer player)
|
||||||
{
|
{
|
||||||
if (SpellHelper.isFakePlayer(player)) return false;
|
if (SpellHelper.isFakePlayer(player)) return false;
|
||||||
return SoulNetworkHandler.checkAndSetItemOwner(item, player);
|
return SoulNetworkHandler.checkAndSetItemPlayer(item, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setItemOwner(ItemStack item, String ownerName)
|
public static void setItemOwner(ItemStack item, String ownerName)
|
||||||
|
|
Loading…
Reference in a new issue