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

WORLDEDIT-3524: Fix copying of certain entities in 1.11 #5

Merged
merged 1 commit into from Dec 2, 2016

Conversation

md-5
Copy link
Contributor

@md-5 md-5 commented Dec 1, 2016

The abovementioned ticket incorrectly suggests both that this is an issue unique to armor stands and is a Spigot issue. In fact this issue extends to all entities which changed IDs in the 1.11 update (armor stands and pig zombies used as test cases), and is caused by WorldEdit incorrectly using the old entity IDs to create internal snapshot representations, but the new IDs to paste them. This commit changes those IDs to the new IDs to allow clipboards created in 1.11 to be successfully pasted in 1.11(+). It does not however fix the (already existing) bug that older schematics will not have these changed entities pasted correctly. This is something that needs to be addressed separately, potentially at a level common to all platforms on which WorldEdit is supported.

The abovementioned ticket incorrectly suggests both that this is an issue unique to armor stands and is a Spigot issue. In fact this issue extends to all entities which changed IDs in the 1.11 update (armor stands and pig zombies used as test cases), and is caused by WorldEdit incorrectly using the old entity IDs to create internal snapshot representations, but the new IDs to paste them. This commit changes those IDs to the new IDs to allow clipboards created in 1.11 to be successfully pasted in 1.11(+). It does not however fix the (already existing) bug that older schematics will not have these changed entities pasted correctly. This is something that needs to be addressed separately, potentially at a level common to all platforms on which WorldEdit is supported.
@wizjany
Copy link
Collaborator

wizjany commented Dec 2, 2016

Apologies for assuming this was a spigot error. It's just happened in the past where some issue seems to have been fixed in spigot for armor stands, and frames were just not pasting because rotation tags were changed. My 1.9.4 test server is still full of armor stand and item frames from testing this, although I never figured out what was wrong with armor stands at that time. http://i.imgur.com/mQMbuXq.png http://i.imgur.com/AiKviwi.png

As for old schematics - yea that is a problem with not just entities. There are now various standards of storing block id mappings and worldedit still doesn't support any of them. Adding backward compat for entity ids as well is going to be a mess.

@wizjany wizjany merged commit a25e6a4 into EngineHub:master Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants