rs-peer / issues

1 stars 0 forks source link

TargetEvent is not fired when target is lost #421

Open pepsip77 opened 4 years ago

pepsip77 commented 4 years ago

TargetEvent is not fired when target is lost only when new one is acquired.

Steps to reproduce:

  1. Use attached snippet
  2. Get new target (attack NPC/ start fishing)
  3. Lose target by walking away

public void notify(TargetEvent e) { if (Players.getLocal().equals(e.getSource())) { Log.fine("test"); } }

Jasper-ketelaar commented 4 years ago

Just managed to reproduce this issue; looking into it.

Jasper-ketelaar commented 4 years ago

Could you let me know a description of how you would use the event if it worked properly?

pepsip77 commented 4 years ago

Could you let me know a description of how you would use the event if it worked properly?

Trigger a sleep timer when fishing spot disappears to create a more human-like behaviour