Skip to content

Fix tag lookup for "skript" and "paper"#7450

Merged
APickledWalrus merged 13 commits into
SkriptLang:dev/patchfrom
Fusezion:bug/7449-tag_namespace_check
Feb 1, 2025
Merged

Fix tag lookup for "skript" and "paper"#7450
APickledWalrus merged 13 commits into
SkriptLang:dev/patchfrom
Fusezion:bug/7449-tag_namespace_check

Conversation

@Fusezion
Copy link
Copy Markdown
Contributor

@Fusezion Fusezion commented Jan 16, 2025

Description

This PR aims to fix the tag lookup for the ExprTag class. This should now make helmets check minecraft:helmets and paper:helmets (ending at paper)

If someone has a suggestion for how test should be done I'm willing to here, this will break if minecraft ever adds minecraft:helmets tag, which somehow they never have.

NOTE:

This PR is currently targeting master to limit the amount of file changes until the team merges master into dev/patch


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

@Fusezion Fusezion changed the base branch from master to dev/patch January 16, 2025 13:45
Comment thread src/test/skript/tests/regressions/7449-tag lookup only does minecraft.sk Outdated
@Efnilite Efnilite added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jan 16, 2025
Fusezion and others added 4 commits January 16, 2025 16:51
…necraft.sk

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
 - Remove lookup if namespace is provided
 - Cleanup lookup code
 - thanks sovde for explaining in further detail/provide literal code.
@Fusezion Fusezion requested a review from Efnilite January 17, 2025 01:13
Comment thread src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTag.java Outdated
@Fusezion Fusezion requested a review from Efnilite January 29, 2025 11:00
 - Revert back to package-private
@APickledWalrus APickledWalrus added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Feb 1, 2025
Comment thread src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTag.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTag.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTag.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTag.java Outdated
@APickledWalrus APickledWalrus merged commit deb21b5 into SkriptLang:dev/patch Feb 1, 2025
@Fusezion Fusezion deleted the bug/7449-tag_namespace_check branch February 5, 2025 04:57
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
---------

Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
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. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants