Skip to content

[CHORE] Fix a null safety error in MusicTimeChangeEvent.hx#2

Open
ADA-Funni wants to merge 1 commit intoPurSnake:mainfrom
ADA-Funni:chore/ease-function-nullsafety-go-brrr
Open

[CHORE] Fix a null safety error in MusicTimeChangeEvent.hx#2
ADA-Funni wants to merge 1 commit intoPurSnake:mainfrom
ADA-Funni:chore/ease-function-nullsafety-go-brrr

Conversation

@ADA-Funni
Copy link
Copy Markdown

Since getEaseFromName() uses Reflect.field(), the compiler screams at us because it isn't null safe.
I just added a flag to make it ignore this error, and I also turned the return into a ternary rather than an if statement.

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.

1 participant