v2.0.0: added a safety check to AttackIndicator
This commit is contained in:
@@ -187,6 +187,7 @@ public class AttackIndicator extends Tag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void target(Char target ) {
|
public static void target(Char target ) {
|
||||||
|
if (target == null) return;
|
||||||
synchronized (instance) {
|
synchronized (instance) {
|
||||||
instance.lastTarget = (Mob) target;
|
instance.lastTarget = (Mob) target;
|
||||||
instance.updateImage();
|
instance.updateImage();
|
||||||
|
|||||||
Reference in New Issue
Block a user