Skip to content

[IMP] Prevent sneaky people to script their way through#1

Open
rrahir wants to merge 1 commit into
sherpal:masterfrom
rrahir:master-cheaters-r
Open

[IMP] Prevent sneaky people to script their way through#1
rrahir wants to merge 1 commit into
sherpal:masterfrom
rrahir:master-cheaters-r

Conversation

@rrahir
Copy link
Copy Markdown

@rrahir rrahir commented Jan 18, 2022

This is a really bad contribution as I haven't installed the game, even less tested it but I hope you get the idea :)

private val clickHandler: js.Function1[MouseEvent, _] = { (event: MouseEvent) =>
if (event.istrusted()) {
mouseClickBus.writer.onNext(event)
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently istrusted is not a function and is spelled isTrusted.

So we can replace these lines with

if event.isTrusted then mouseClickBus.writer.onNext(event)

@rrahir rrahir force-pushed the master-cheaters-r branch from fec67e7 to 281b707 Compare January 19, 2022 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants