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

Looking at locations permits (relative) locations without worlds. #6590

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

Moderocky
Copy link
Member

Description

Previously, if you asked an entity to look at a location that had no attached world it would fail with an error.
Now, it will replace the location with the equivalent one in the entity's world.

Note that this won't fix entities being asked to look at locations in different worlds (which I presume will probably error or do nothing, I don't know how Minecraft deals with that) but that seemed a little out of scope for this bug fix.

This should also fix the equivalent issue in legacy versions which use the old mob goal. I don't know if this issue occurred there, but in the case that it did I've done my best to support it.


Target Minecraft Versions: any
Requirements: none
Related Issues: closes #6476

@Moderocky Moderocky added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.8 Targeting a 2.8.X version release labels Apr 19, 2024
@Moderocky Moderocky merged commit 7f6be1a into SkriptLang:dev/patch Apr 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.8 Targeting a 2.8.X version release 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.

None yet

3 participants