Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 00:50:13 +01:00
1.19.3-rc3 protocol changes (but not actually supporting the snapshot)
Definitely still 4.5.0
Dieser Commit ist enthalten in:
Ursprung
f7a48d028b
Commit
b4870a49e3
@ -77,7 +77,20 @@ public final class EntityPackets extends EntityRewriter<Protocol1_19_3To1_19_1>
|
|||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(Type.STRING); // Dimension
|
map(Type.STRING); // Dimension
|
||||||
map(Type.STRING); // World
|
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(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);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren