This commit is contained in:
Sollace 2023-09-16 18:23:53 +01:00
parent 3798d69e7c
commit c74ec25eac
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -403,7 +403,7 @@ public class SombraEntity extends HostileEntity implements ArenaCombatant, Parti
target.addStatusEffect(new StatusEffectInstance(StatusEffects.DARKNESS, 26, 0, true, false));
}
if (getTarget() == null && target instanceof PlayerEntity player && player.distanceTo(this) < getAreaRadius() / 2F) {
if (getTarget() == null && target.distanceTo(this) < getAreaRadius() / 2F) {
if (teleportTo(target.getPos())) {
setPosition(getPos().add(0, 4, 0));
}