3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-11-17 13:30:14 +01:00
Dieser Commit ist enthalten in:
Nassim Jahnke 2022-11-29 17:33:11 +01:00
Ursprung 2427690b78
Commit d18825e700
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
3 geänderte Dateien mit 20 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -5,7 +5,7 @@ plugins {
allprojects {
group = "com.viaversion"
version = "4.5.0-22w46a-SNAPSHOT"
version = "4.5.0-1.19.3-pre3-SNAPSHOT"
description = "Allow older clients to join newer server versions."
}

Datei anzeigen

@ -93,9 +93,25 @@ public final class Protocol1_19_1To1_19_3 extends BackwardsProtocol<ClientboundP
final SoundRewriter soundRewriter = new SoundRewriter(this);
soundRewriter.registerStopSound(ClientboundPackets1_19_3.STOP_SOUND);
soundRewriter.registerSound(ClientboundPackets1_19_3.SOUND);
soundRewriter.registerSound(ClientboundPackets1_19_3.ENTITY_SOUND);
soundRewriter.registerNamedSound(ClientboundPackets1_19_3.NAMED_SOUND);
soundRewriter.registerSound(ClientboundPackets1_19_3.SOUND);
registerClientbound(ClientboundPackets1_19_3.SOUND, new PacketRemapper() {
@Override
public void registerMap() {
handler(wrapper -> {
final int soundId = wrapper.read(Type.VAR_INT);
if (soundId == 0) {
wrapper.passthrough(Type.STRING); // String identifier
wrapper.read(Type.OPTIONAL_FLOAT); // Fixed range
wrapper.setPacketType(ClientboundPackets1_19_1.NAMED_SOUND);
return;
}
// Normalize the sound id
wrapper.write(Type.VAR_INT, soundId - 1);
});
}
});
final TagRewriter tagRewriter = new TagRewriter(this);
tagRewriter.addEmptyTag(RegistryType.BLOCK, "minecraft:non_flammable_wood");

Datei anzeigen

@ -3,7 +3,7 @@ metadata.format.version = "1.1"
[versions]
# ViaVersion
viaver = "4.5.0-22w43a-SNAPSHOT"
viaver = "4.5.0-1.19.3-pre3-SNAPSHOT"
# Common provided
netty = "4.0.20.Final"