Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-17 13:30:14 +01:00
1.19.3-pre3
Dieser Commit ist enthalten in:
Ursprung
2427690b78
Commit
d18825e700
@ -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."
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
@ -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"
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren