Update PrayerTracker.java

Fix constant NPE
This commit is contained in:
zeruth
2019-04-29 17:40:30 -04:00
parent 9f7787771e
commit ea43d94b37

View File

@@ -43,10 +43,10 @@ public class PrayerTracker
newTick.put(actor, new HashMap<>());
}
if (actor instanceof Player)
{
newTick.get(actor).put("PrayerIcon", ((Player) actor).getOverheadIcon().ordinal());
}
newTick.get(actor).put("SpotAnim", actor.getGraphic());
if (((Player) actor).getOverheadIcon()!=null) {
newTick.get(actor).put("PrayerIcon", ((Player) actor).getOverheadIcon().ordinal());
newTick.get(actor).put("SpotAnim", actor.getGraphic());
}
}
public int getPrayerIconLastTick(Actor p)