1.16 pre6

This commit is contained in:
KennyTV 2020-06-15 20:12:04 +02:00
parent 4a8a475d55
commit 124f5a5b87
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -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