1.19.3-rc1

This commit is contained in:
Nassim Jahnke 2022-12-01 16:41:19 +01:00
parent 96631cee0c
commit e0cd121a58
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
4 changed files with 14 additions and 4 deletions

View File

@ -82,7 +82,7 @@ public class ProtocolVersion {
public static final ProtocolVersion v1_18_2 = register(758, "1.18.2");
public static final ProtocolVersion v1_19 = register(759, "1.19");
public static final ProtocolVersion v1_19_1 = register(760, "1.19.1/2", new VersionRange("1.19", 1, 2));
public static final ProtocolVersion v1_19_3 = register(761, 111, "1.19.3");
public static final ProtocolVersion v1_19_3 = register(761, 112, "1.19.3");
public static final ProtocolVersion unknown = register(-1, "UNKNOWN");
public static ProtocolVersion register(int version, String name) {

View File

@ -76,7 +76,18 @@ public final class Protocol1_19_3To1_19_1 extends AbstractProtocol<ClientboundPa
itemRewriter.register();
final SoundRewriter soundRewriter = new SoundRewriter(this);
soundRewriter.registerSound(ClientboundPackets1_19_1.ENTITY_SOUND);
registerClientbound(ClientboundPackets1_19_1.ENTITY_SOUND, new PacketRemapper() {
@Override
public void registerMap() {
map(Type.VAR_INT); // Sound id
handler(soundRewriter.getSoundHandler());
handler(wrapper -> {
// 0 means a resource location will be written
final int soundId = wrapper.get(Type.VAR_INT, 0);
wrapper.set(Type.VAR_INT, 0, soundId + 1);
});
}
});
registerClientbound(ClientboundPackets1_19_1.SOUND, new PacketRemapper() {
@Override
public void registerMap() {

View File

@ -48,7 +48,6 @@ public class SoundRewriter {
});
}
// Different to entity sounds now
public void register1_19_3Sound(ClientboundPacketType packetType) {
protocol.registerClientbound(packetType, new PacketRemapper() {
@Override

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.5.0-1.19.3-pre3-SNAPSHOT
projectVersion=4.5.0-1.19.3-rc1-SNAPSHOT
# Gradle properties
org.gradle.daemon=true