Fix random long gen for seeded sounds

This commit is contained in:
Nassim Jahnke 2022-10-08 21:50:09 +02:00
parent 464a85c52b
commit b133dad642
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

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