Added a null check, this might fix a crash with inebriation.
This commit is contained in:
parent
a5ac7685d2
commit
1f59f81489
|
@ -42,6 +42,8 @@ public class PotionInebriation extends Potion
|
|||
|
||||
@Override
|
||||
public void performEffect(EntityLivingBase entityLivingBaseIn, int amplifier)
|
||||
{
|
||||
if (entityLivingBaseIn != null)
|
||||
{
|
||||
this.distractEntity(entityLivingBaseIn);
|
||||
|
||||
|
@ -58,7 +60,7 @@ public class PotionInebriation extends Potion
|
|||
AetherNetwork.sendToAll(new PacketSendPoison((EntityPlayer) entityLivingBaseIn));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void distractEntity(EntityLivingBase entityLivingBaseIn)
|
||||
|
|
Loading…
Reference in a new issue