Poison...yay
This commit is contained in:
parent
7cc302e7b5
commit
cba0065139
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ public class AetherPoisonMovement
|
|||
|
||||
public boolean afflictPoison()
|
||||
{
|
||||
if (this.poisonTime < 0)
|
||||
if (!this.thePlayer.worldObj.isRemote && this.poisonTime < 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue