3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 16:12:42 +01:00

Fix random long gen for seeded sounds

Dieser Commit ist enthalten in:
Nassim Jahnke 2022-10-08 21:50:09 +02:00
Ursprung 464a85c52b
Commit b133dad642
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -86,7 +86,7 @@ public final class Protocol1_19To1_18_2 extends AbstractProtocol<ClientboundPack
map(Type.INT); // Z
map(Type.FLOAT); // Volume
map(Type.FLOAT); // Pitch
create(Type.LONG, randomLong()); // Seed
handler(wrapper -> wrapper.write(Type.LONG, randomLong())); // Seed
handler(soundRewriter.getSoundHandler());
}
});
@ -98,7 +98,7 @@ public final class Protocol1_19To1_18_2 extends AbstractProtocol<ClientboundPack
map(Type.VAR_INT); // Entity id
map(Type.FLOAT); // Volume
map(Type.FLOAT); // Pitch
create(Type.LONG, randomLong()); // Seed
handler(wrapper -> wrapper.write(Type.LONG, randomLong())); // Seed
handler(soundRewriter.getSoundHandler());
}
});
@ -112,7 +112,7 @@ public final class Protocol1_19To1_18_2 extends AbstractProtocol<ClientboundPack
map(Type.INT); // Z
map(Type.FLOAT); // Volume
map(Type.FLOAT); // Pitch
create(Type.LONG, randomLong()); // Seed
handler(wrapper -> wrapper.write(Type.LONG, randomLong())); // Seed
}
});