Skip to content

Commit

Permalink
boss timers: improve accuracy of boss respawn timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexsuperfly authored and Adam- committed May 27, 2018
1 parent 7a0d719 commit e53d161
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import javax.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.Actor;
import net.runelite.api.events.ActorDeath;
import net.runelite.api.events.ActorDespawned;
import net.runelite.client.game.ItemManager;
import net.runelite.client.plugins.Plugin;
import net.runelite.client.plugins.PluginDescriptor;
Expand All @@ -54,9 +54,9 @@ protected void shutDown() throws Exception
}

@Subscribe
public void onActorDeath(ActorDeath death)
public void onActorDespawned(ActorDespawned despawned)
{
Actor actor = death.getActor();
Actor actor = despawned.getActor();

Boss boss = Boss.find(actor.getName());
if (boss == null)
Expand Down

0 comments on commit e53d161

Please sign in to comment.