Poison...yay

This commit is contained in:
Kino 2016-12-24 12:18:08 -05:00
parent 7cc302e7b5
commit cba0065139
2 changed files with 9 additions and 5 deletions

View file

@ -37,13 +37,17 @@ public class EntityDartPoison extends EntityDartBase
if (living instanceof EntityPlayer)
{
EntityPlayer ent = (EntityPlayer)living;
PlayerAether player = PlayerAether.get(ent);
if (!this.worldObj.isRemote)
if (!player.isPoisoned())
{
PlayerAether.get(ent).afflictPoison();
AetherNetworkingManager.sendToAll(new PacketSendPoison(ent));
if (!this.worldObj.isRemote)
{
PlayerAether.get(ent).afflictPoison();
AetherNetworkingManager.sendToAll(new PacketSendPoison(ent));
this.setDead();
this.setDead();
}
}
}
}

View file

@ -57,7 +57,7 @@ public class AetherPoisonMovement
public boolean afflictPoison()
{
if (this.poisonTime < 0)
if (!this.thePlayer.worldObj.isRemote && this.poisonTime < 0)
{
return false;
}