Update PrayerTracker.java
Fix constant NPE
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user