Fixes entitydata consumer on versions 1.20.1 and below. #6475
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes an exception from being thrown when attempting to spawn an EntityData when there is no World involved with the Location.
See header of EntityData for an explanation of this reflection
Skript/src/main/java/ch/njol/skript/entity/EntityData.java
Lines 73 to 77 in 1132757
This is caused by the world not being loaded on server start or in my case, a server crash. I plan on addressing this better in the future to not outright delete the World.
Skript/src/main/java/ch/njol/skript/classes/data/BukkitClasses.java
Lines 399 to 403 in 1132757
Target Minecraft Versions: any
Requirements: none
Related Issues: none