Update PrayerTracker.java
Fix constant NPE
This commit is contained in:
@@ -43,10 +43,10 @@ public class PrayerTracker
|
|||||||
newTick.put(actor, new HashMap<>());
|
newTick.put(actor, new HashMap<>());
|
||||||
}
|
}
|
||||||
if (actor instanceof Player)
|
if (actor instanceof Player)
|
||||||
{
|
if (((Player) actor).getOverheadIcon()!=null) {
|
||||||
newTick.get(actor).put("PrayerIcon", ((Player) actor).getOverheadIcon().ordinal());
|
newTick.get(actor).put("PrayerIcon", ((Player) actor).getOverheadIcon().ordinal());
|
||||||
}
|
newTick.get(actor).put("SpotAnim", actor.getGraphic());
|
||||||
newTick.get(actor).put("SpotAnim", actor.getGraphic());
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPrayerIconLastTick(Actor p)
|
public int getPrayerIconLastTick(Actor p)
|
||||||
|
|||||||
Reference in New Issue
Block a user