We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Item has been cloned so that it will be completely independent of the original item
Cloned item has the same CompoundTag cachedNBT object as the original item.
CompoundTag cachedNBT
Item original = Item.get(1); original.setCustomName("original"); Item cloned = original.clone(); cloned.setCustomName("cloned"); System.out.println(original.getCustomName()); // output "cloned"
Nukkit: 7467d4a
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
Item has been cloned so that it will be completely independent of the original item
Actual Behavior
Cloned item has the same
CompoundTag cachedNBT
object as the original item.Steps to Reproduce
Debug information
Nukkit: 7467d4a
The text was updated successfully, but these errors were encountered: