Added a null check, this might fix a crash with inebriation.

This commit is contained in:
bconlon 2020-12-05 21:57:50 -08:00
parent a5ac7685d2
commit 1f59f81489

View file

@ -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)