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

Add Block / Item ID conversion and add support for larger ids / data in schematic files #14

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

spacebuilder2020
Copy link

No description provided.

@spacebuilder2020
Copy link
Author

spacebuilder2020 commented Feb 15, 2025

Initially, I wanted to preserve the ability to set a block to -1, so I did not do any unsigned casting on the second byte of the data block. However, looking at this code, it seems -1 is for wild card and that doesn't seem like a feature that you would expect to get from a schematic since that is a snapshot of a world region so I am thinking it may be best to change the code to do an unsigned cast to int on the data short.

Thoughts?

https://github.com/GTNewHorizons/worldedit-gtnh/blob/master/src/main/java/com/sk89q/worldedit/blocks/BaseBlock.java#L228

Update: After more testing, determined that there were blocks that were being set to -1 erroneously, and since -1 was for wild cards and caused the copy to stop when pasting in, I have since updated logic to always do a unsigned cast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant