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.0 Update: Slot DataType Change for Enchanted Items #99

Open
ementalo opened this issue Oct 7, 2011 · 1 comment
Open

1.0 Update: Slot DataType Change for Enchanted Items #99

ementalo opened this issue Oct 7, 2011 · 1 comment

Comments

@ementalo
Copy link
Member

ementalo commented Oct 7, 2011

Four packets changed:
0x0F player block placement
0x66 window click
0x67 set slot
0x68 window items
0x6B Create Inventory

This change affects the "slot" datatype. This type consists of at least a short (item_id). If this id isn't -1, a byte (count) and a short (uses) follow.

From 1.9pre2 onward, additional data is sent but only for https://gist.github.com/1268479 This means the protocol is no longer context free.

The additional data is at least a short. If this short isn't -1, a byte[] array follows, containing gzipped NBT data

The format of the NBT is as follows
COMPOUND
LIST: 'ench'
SHORT: 'id'
SHORT: 'lvl'
END
END

@Smjert
Copy link
Contributor

Smjert commented Nov 19, 2011

Partially fixed in commit 3b5f1e6
Referred also into issue #146.

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

No branches or pull requests

2 participants