Merge pull request #126 from Alex-hawks/patch-1

Add overload of syphonAndDamageFromNetwork that takes a String
This commit is contained in:
WayofTime 2014-10-31 15:33:09 -04:00
commit e6fdd9f413

View file

@ -86,6 +86,20 @@ public class SoulNetworkHandler
return true;
}
public static boolean syphonAndDamageFromNetwork(String ownerName, EntityPlayer player, int damageToBeDone)
{
if (player.worldObj.isRemote)
{
return false;
}
int amount = SoulNetworkHandler.syphonFromNetwork(ownerName, damageToBeDone);
hurtPlayer(player, damageToBeDone - amount);
return true;
}
public static boolean canSyphonFromOnlyNetwork(ItemStack ist, int damageToBeDone)
{