3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00

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

Definitely still 4.5.0
Dieser Commit ist enthalten in:
Nassim Jahnke 2022-12-06 12:20:48 +01:00
Ursprung f7a48d028b
Commit b4870a49e3
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -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);
});
}
});