Skip to content

Commit

Permalink
bugfix rp alert to make it work with mouse clicks not just keyboard i…
Browse files Browse the repository at this point in the history
…nput

(cherry picked from commit 2a858c64eefe37880252162ae18c42f28de3b78d)
  • Loading branch information
brightrim committed Nov 2, 2023
1 parent 5fd8e33 commit af7e627
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import illarion.common.memory.Poolable;
import org.illarion.engine.input.Button;
import illarion.client.IllaClient;

import javax.annotation.Nonnull;

Expand All @@ -40,6 +41,7 @@ public abstract class AbstractMouseOnMapEvent extends AbstractMouseLocationEvent
*/
protected AbstractMouseOnMapEvent(@Nonnull Button key, int x, int y) {
super(x, y);
IllaClient.lastInputTime = System.currentTimeMillis() / 1000L; // Registers that the user is active client-side when clicking the mouse, for RP alert purposes
this.key = key;
}

Expand Down

0 comments on commit af7e627

Please sign in to comment.