1.18.2 pre1

This commit is contained in:
Nassim Jahnke 2022-02-18 17:42:26 +01:00
parent a85c5578c1
commit 4e9cddac8f
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
3 changed files with 18 additions and 2 deletions

View File

@ -79,7 +79,7 @@ public class ProtocolVersion {
public static final ProtocolVersion v1_17 = register(755, "1.17");
public static final ProtocolVersion v1_17_1 = register(756, "1.17.1");
public static final ProtocolVersion v1_18 = register(757, "1.18/1.18.1", new VersionRange("1.18", 0, 1));
public static final ProtocolVersion v1_18_2 = register(758, 68, "1.18.2");
public static final ProtocolVersion v1_18_2 = register(758, 70, "1.18.2");
public static final ProtocolVersion unknown = register(-1, "UNKNOWN");
public static ProtocolVersion register(int version, String name) {

View File

@ -41,6 +41,22 @@ public final class Protocol1_18_2To1_18 extends AbstractProtocol<ClientboundPack
tagRewriter.addEmptyTag(RegistryType.BLOCK, "minecraft:fall_damage_resetting");
tagRewriter.registerGeneric(ClientboundPackets1_18.TAGS);
registerClientbound(ClientboundPackets1_18.ENTITY_EFFECT, new PacketRemapper() {
@Override
public void registerMap() {
map(Type.VAR_INT); // Entity id
map(Type.BYTE, Type.VAR_INT); // Effect id
}
});
registerClientbound(ClientboundPackets1_18.REMOVE_ENTITY_EFFECT, new PacketRemapper() {
@Override
public void registerMap() {
map(Type.VAR_INT); // Entity id
map(Type.BYTE, Type.VAR_INT); // Effect id
}
});
registerClientbound(ClientboundPackets1_18.JOIN_GAME, new PacketRemapper() {
@Override
public void registerMap() {

View File

@ -1,5 +1,5 @@
# Project properties - we put these here so they can be modified without causing a recompile of the build scripts
projectVersion=4.2.0-22w07a-SNAPSHOT
projectVersion=4.2.0-1.18.2-pre1-SNAPSHOT
# Gradle properties
org.gradle.daemon=true