Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow plural types in docs.json #7698

Open
wants to merge 3 commits into
base: dev/patch
Choose a base branch
from
Open

Conversation

Efnilite
Copy link
Member

Description

Adds displaying texts when the type is String[], where it would have previously not displayed at all.


Target Minecraft Versions: any
Requirements: none
Related Issues: #7695

@Efnilite Efnilite added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. documentation Related to Skript's official documentation. labels Mar 13, 2025
@Efnilite Efnilite requested a review from Fusezion March 13, 2025 15:23
@@ -176,12 +176,15 @@ private static JsonArray getEventValues(SkriptEventInfo<?> info) {
continue;
}

ClassInfo<?> exactClassInfo = Classes.getExactClassInfo(eventValueInfo.c());
if (exactClassInfo == null) {
ClassInfo<?> classInfo = Classes.getExactClassInfo(eventValueInfo.c().componentType());
Copy link
Member

Choose a reason for hiding this comment

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

won't this return null for non-array types?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. documentation Related to Skript's official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants