mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fix #191
This commit is contained in:
parent
3798d69e7c
commit
c74ec25eac
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ public class SombraEntity extends HostileEntity implements ArenaCombatant, Parti
|
||||||
target.addStatusEffect(new StatusEffectInstance(StatusEffects.DARKNESS, 26, 0, true, false));
|
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())) {
|
if (teleportTo(target.getPos())) {
|
||||||
setPosition(getPos().add(0, 4, 0));
|
setPosition(getPos().add(0, 4, 0));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue