Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-09-07 13:22:54 +02:00
Write default registry for 1.16/1.16.1 clients
Actually processing the monster that is the .2 registry would be unreasonable, and there shouldn't be any reason to keep using those two versions (and not -1.15.2 or +1.16.2)
Dieser Commit ist enthalten in:
Ursprung
d5b19b8869
Commit
2748624dde
@ -13,6 +13,7 @@ import us.myles.ViaVersion.api.remapper.PacketRemapper;
|
|||||||
import us.myles.ViaVersion.api.type.Type;
|
import us.myles.ViaVersion.api.type.Type;
|
||||||
import us.myles.ViaVersion.api.type.types.version.Types1_14;
|
import us.myles.ViaVersion.api.type.types.version.Types1_14;
|
||||||
import us.myles.ViaVersion.protocols.protocol1_16_2to1_16_1.ClientboundPackets1_16_2;
|
import us.myles.ViaVersion.protocols.protocol1_16_2to1_16_1.ClientboundPackets1_16_2;
|
||||||
|
import us.myles.ViaVersion.protocols.protocol1_16to1_15_2.packets.EntityPackets;
|
||||||
import us.myles.ViaVersion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld;
|
import us.myles.ViaVersion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld;
|
||||||
import us.myles.viaversion.libs.gson.JsonElement;
|
import us.myles.viaversion.libs.gson.JsonElement;
|
||||||
|
|
||||||
@ -46,7 +47,11 @@ public class EntityPackets1_16_2 extends EntityRewriter<Protocol1_16_1To1_16_2>
|
|||||||
});
|
});
|
||||||
map(Type.BYTE); // Previous Gamemode
|
map(Type.BYTE); // Previous Gamemode
|
||||||
map(Type.STRING_ARRAY); // World List
|
map(Type.STRING_ARRAY); // World List
|
||||||
map(Type.NBT); // Dimension Registry
|
handler(wrapper -> {
|
||||||
|
// Just screw the registry and write the defaults for 1.16 and 1.16.1 clients
|
||||||
|
wrapper.read(Type.NBT);
|
||||||
|
wrapper.write(Type.NBT, EntityPackets.DIMENSIONS_TAG);
|
||||||
|
});
|
||||||
map(Type.STRING); // Dimension Type
|
map(Type.STRING); // Dimension Type
|
||||||
map(Type.STRING); // Dimension
|
map(Type.STRING); // Dimension
|
||||||
map(Type.LONG); // Seed
|
map(Type.LONG); // Seed
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren