mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 04:55:25 +01:00
Force monster targetting to be restricted to arena players.
This commit is contained in:
parent
ca6ee0ea3e
commit
515fbc6a22
@ -27,7 +27,7 @@ public class AbilityUtils
|
|||||||
if (entity instanceof Creature) {
|
if (entity instanceof Creature) {
|
||||||
LivingEntity target = ((Creature) entity).getTarget();
|
LivingEntity target = ((Creature) entity).getTarget();
|
||||||
|
|
||||||
if (target instanceof Player) {
|
if (target instanceof Player && arena.inArena((Player) target)) {
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user