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

[1.12] limit server>client ItemStack packet chattiness #4252

Merged
merged 1 commit into from
Aug 1, 2017

Conversation

P3pp3rF1y
Copy link
Contributor

Change to prevent server only itemstack changes triggering SPacketEntityEquipment and SPacketSetSlot from being triggered.
Currently when an itemstack changes in any way it always sends these packets to client even in cases where the change may not have changed the client stack - data in cap nbt or data not included in NBTShareTag.

So this change adds a condition in two places that checks if the client stack has actually changed and only in that case it allows the packets to be sent.

This is 1.12 version of #4045

@mezz mezz added 1.12 Capabilities This request relates to the capability system. Lots of care is required, so progress may be slow. Performance This request deals with performance, whether reporting issues or claiming to improve it. labels Jul 29, 2017
@mezz
Copy link
Contributor

mezz commented Jul 31, 2017

Tested and looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.12 Capabilities This request relates to the capability system. Lots of care is required, so progress may be slow. Performance This request deals with performance, whether reporting issues or claiming to improve it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants