Skip to content

GenerateSyntax.kt - Fix event-value array classes#15

Merged
eyesniper2 merged 1 commit intoSkriptHub:masterfrom
Fusezion:bug/array-event-values
Feb 7, 2025
Merged

GenerateSyntax.kt - Fix event-value array classes#15
eyesniper2 merged 1 commit intoSkriptHub:masterfrom
Fusezion:bug/array-event-values

Conversation

@Fusezion
Copy link
Copy Markdown
Contributor

@Fusezion Fusezion commented Feb 6, 2025

This pr aims to fix an issue with the event-value lookup whenever an array class was provided incorrectly being checked in classinfos and returning as Object.

In addition to the fix above, it also adds an exact classinfo check which in theory should allow finer control over types of classes returned in these values.

The addition of a data class CodeNameData was done to provide additional information about whether it's an array in order to correctly handle the plurality in the json (i.e. entity -> entities, item -> items)

image

@eyesniper2 eyesniper2 merged commit f13d989 into SkriptHub:master Feb 7, 2025
@eyesniper2
Copy link
Copy Markdown
Contributor

Looks great! Thanks for the PR!

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