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

Unable to update nested CompoundTag in CompoundTag #4

Open
ScarletRedMan opened this issue Feb 13, 2023 · 0 comments
Open

Unable to update nested CompoundTag in CompoundTag #4

ScarletRedMan opened this issue Feb 13, 2023 · 0 comments
Labels
bug Something isn't working Priority: Low

Comments

@ScarletRedMan
Copy link
Contributor

var nested = new CompoundTag();
nested.set(Tag.Integer("val"), 3);

var tag = new CompoundTag();
tag.set(Tag.Compound("nested"), nested);
nested.set(Tag.Integer("val"), 6);

nested.get(Tag.Integer("val")); //expected: 6, received: 6
tag.get(Tag.Compound("nested")).get(Tag.Integer("val")); //expected: 6, received 3

In this situation, the nested tag should recursively notify parent tag about updates

@ScarletRedMan ScarletRedMan added bug Something isn't working Priority: Low labels Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: Low
Projects
None yet
Development

No branches or pull requests

1 participant