Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 08:30:10 +01:00
1.16 pre6
Dieser Commit ist enthalten in:
Ursprung
4a8a475d55
Commit
124f5a5b87
@ -51,8 +51,9 @@ public class EntityPackets1_16 extends EntityRewriter<Protocol1_15_2To1_16> {
|
|||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(dimensionTransformer); // Dimension Type
|
map(dimensionTransformer); // Dimension Type
|
||||||
map(Type.STRING, Type.NOTHING); // Dimension
|
map(Type.STRING, Type.NOTHING); // Dimension
|
||||||
map(Type.LONG);
|
map(Type.LONG); // Seed
|
||||||
map(Type.UNSIGNED_BYTE);
|
map(Type.UNSIGNED_BYTE); // Gamemode
|
||||||
|
map(Type.BYTE, Type.NOTHING); // Previous gamemode
|
||||||
handler(wrapper -> {
|
handler(wrapper -> {
|
||||||
ClientWorld clientWorld = wrapper.user().get(ClientWorld.class);
|
ClientWorld clientWorld = wrapper.user().get(ClientWorld.class);
|
||||||
clientWorld.setEnvironment(wrapper.get(Type.INT, 0));
|
clientWorld.setEnvironment(wrapper.get(Type.INT, 0));
|
||||||
@ -72,6 +73,7 @@ public class EntityPackets1_16 extends EntityRewriter<Protocol1_15_2To1_16> {
|
|||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(Type.INT); // Entity ID
|
map(Type.INT); // Entity ID
|
||||||
map(Type.UNSIGNED_BYTE); // Gamemode
|
map(Type.UNSIGNED_BYTE); // Gamemode
|
||||||
|
map(Type.BYTE, Type.NOTHING); // Previous gamemode
|
||||||
map(Type.STRING_ARRAY, Type.NOTHING); // World list
|
map(Type.STRING_ARRAY, Type.NOTHING); // World list
|
||||||
map(Type.NBT, Type.NOTHING); // whatever this is
|
map(Type.NBT, Type.NOTHING); // whatever this is
|
||||||
map(dimensionTransformer); // Dimension Type
|
map(dimensionTransformer); // Dimension Type
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren