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

Nbt multiplayer fixes #324

Open
wants to merge 2 commits into
base: 1.20.1
Choose a base branch
from

Conversation

Smartin-b
Copy link

so, this is a weird one.
NBT based properties are fully broken on servers.
This is because Attribute Containers were never synced to the client, only the finished WeaponAttributes
This means a player that never joined single player has no Attribute Container and this client is unable to locally resolve the nbt correctly.
To replicate this issue, simply open a server, start the client fresh, dont join single player, join directly a server and use
/give @p minecraft:wooden_sword{weapon_attributes:'{"parent":"bettercombat:claymore"}'} 1
This wooden sword wont have any animations.
If one enters singleplayer and then back to the server the same sword will work.

This PR fixes this issue by also syncing the Attribute Container in the same packet as the Weapon Attributes.

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.

None yet

1 participant