Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-20 06:50:10 +01:00
1.19.3-rc3
Definitely still 4.5.0 as well
Dieser Commit ist enthalten in:
Ursprung
cc9bf7284a
Commit
0fe3d9410e
@ -96,7 +96,17 @@ public final class EntityPackets1_19_3 extends EntityRewriter<Protocol1_19_1To1_
|
|||||||
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 -> {
|
||||||
|
// Old clients will always keep entity data (packed here as 0x02), nothing we can do there
|
||||||
|
final byte keepDataMask = wrapper.read(Type.BYTE);
|
||||||
|
wrapper.write(Type.BOOLEAN, (keepDataMask & 1) != 0); // Keep attributes
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren