3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 08:30:12 +01:00

Don't play a sound when falling onto a block (#1175)

Dieser Commit ist enthalten in:
Camotoy 2020-08-21 13:01:38 -04:00 committet von GitHub
Ursprung 7fcfa7d54d
Commit ee42067d87
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -50,7 +50,7 @@ public class JavaSpawnParticleTranslator extends PacketTranslator<ServerSpawnPar
LevelEventPacket particle = new LevelEventPacket(); LevelEventPacket particle = new LevelEventPacket();
switch (packet.getParticle().getType()) { switch (packet.getParticle().getType()) {
case BLOCK: case BLOCK:
particle.setType(LevelEventType.PARTICLE_DESTROY_BLOCK); particle.setType(LevelEventType.PARTICLE_DESTROY_BLOCK_NO_SOUND);
particle.setPosition(Vector3f.from(packet.getX(), packet.getY(), packet.getZ())); particle.setPosition(Vector3f.from(packet.getX(), packet.getY(), packet.getZ()));
particle.setData(BlockTranslator.getBedrockBlockId(((BlockParticleData) packet.getParticle().getData()).getBlockState())); particle.setData(BlockTranslator.getBedrockBlockId(((BlockParticleData) packet.getParticle().getData()).getBlockState()));
session.sendUpstreamPacket(particle); session.sendUpstreamPacket(particle);