Merge pull request #262 from hilburn/master

Fixes API
This commit is contained in:
WayofTime 2015-02-25 06:11:42 -05:00
commit 2f47ffa955
3 changed files with 8 additions and 3 deletions

View file

@ -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;

View file

@ -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)
{

View file

@ -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)