1.19.3-rc3 protocol changes (but not actually supporting the snapshot)

Definitely still 4.5.0
This commit is contained in:
Nassim Jahnke 2022-12-06 12:20:48 +01:00
parent f7a48d028b
commit b4870a49e3
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
1 changed files with 13 additions and 0 deletions

View File

@ -77,7 +77,20 @@ public final class EntityPackets extends EntityRewriter<Protocol1_19_3To1_19_1>
public void registerMap() {
map(Type.STRING); // Dimension
map(Type.STRING); // World
map(Type.LONG); // Seed
map(Type.UNSIGNED_BYTE); // Gamemode
map(Type.BYTE); // Previous gamemode
map(Type.BOOLEAN); // Debug
map(Type.BOOLEAN); // Flat
handler(worldDataTrackerHandlerByKey());
handler(wrapper -> {
final boolean keepAttributes = wrapper.read(Type.BOOLEAN);
byte keepDataMask = 0x02; // Always keep entity data
if (keepAttributes) {
keepDataMask |= 0x01;
}
wrapper.write(Type.BYTE, keepDataMask);
});
}
});