Merge pull request #126 from Alex-hawks/patch-1
Add overload of syphonAndDamageFromNetwork that takes a String
This commit is contained in:
commit
e6fdd9f413
|
@ -86,6 +86,20 @@ public class SoulNetworkHandler
|
||||||
|
|
||||||
return true;
|
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)
|
public static boolean canSyphonFromOnlyNetwork(ItemStack ist, int damageToBeDone)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue