mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Seems like the double closing issue isnt from my code and from somewhere else
This commit is contained in:
parent
7645ef375a
commit
d6a8e6231e
1 changed files with 0 additions and 6 deletions
|
|
@ -51,12 +51,6 @@ public class OpenableSoundInteractionTranslator implements BlockSoundInteraction
|
||||||
levelSoundEventPacket.setSound(event);
|
levelSoundEventPacket.setSound(event);
|
||||||
levelSoundEventPacket.setExtraData(session.getBlockMappings().getBedrockBlock(state).getRuntimeId());
|
levelSoundEventPacket.setExtraData(session.getBlockMappings().getBedrockBlock(state).getRuntimeId());
|
||||||
session.sendUpstreamPacket(levelSoundEventPacket);
|
session.sendUpstreamPacket(levelSoundEventPacket);
|
||||||
// To ensure that the doors don't do weird double closing sometimes
|
|
||||||
LevelEventPacket levelEventPacket = new LevelEventPacket();
|
|
||||||
levelEventPacket.setType(LevelEvent.SOUND_DOOR_OPEN);
|
|
||||||
levelEventPacket.setPosition(position);
|
|
||||||
levelEventPacket.setData(-1);
|
|
||||||
session.sendUpstreamPacket(levelEventPacket);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private SoundEvent getSound(boolean open, String identifier) {
|
private SoundEvent getSound(boolean open, String identifier) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue