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:
Ursprung
7fcfa7d54d
Commit
ee42067d87
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren