Skip to content

RegistryParser - fix pulling from the lang file on custom entries#7540

Merged
APickledWalrus merged 3 commits into
SkriptLang:dev/patchfrom
ShaneBeee:shane/registry-parser-fix
Feb 1, 2025
Merged

RegistryParser - fix pulling from the lang file on custom entries#7540
APickledWalrus merged 3 commits into
SkriptLang:dev/patchfrom
ShaneBeee:shane/registry-parser-fix

Conversation

@ShaneBeee
Copy link
Copy Markdown
Contributor

Description

This PR aims to fix a tiny little bug with lang nodes in the RegistryParser.

What I noticed is if the lang file contains an entry that matches a custom entry, Skript attempts to use it, when it should only use minecraft namespaced entries.

Ex:
In the lang file under biomes, we have desert_lakes (Im assuming an old MC biome?!?!?)
Screenshot 2025-01-26 at 11 11 28 AM

When using a data pack that has packname:desert_lakes it grabs from the lang file.
Screenshot 2025-01-26 at 11 12 20 AM

This shouldn't happen.
We shouldn't be looking in the lang file for non-Minecraft entries.

The change I have implemented here was to only grab from the lang file if it's a minecraft namespaced object.


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

@Moderocky Moderocky added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jan 27, 2025
@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
@APickledWalrus APickledWalrus merged commit 757b5e7 into SkriptLang:dev/patch Feb 1, 2025
@ShaneBeee ShaneBeee deleted the shane/registry-parser-fix branch February 1, 2025 18:57
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.

4 participants