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

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

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

Conversation

ShaneBeee
Copy link
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
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants