update cloudburst library to 20240704.153116-14

This commit is contained in:
Ethan 2024-07-05 19:06:44 +08:00
parent bffeba6c0e
commit cb3c054fec
2 changed files with 5 additions and 8 deletions

View file

@ -382,11 +382,10 @@ public class JavaLevelEventTranslator extends PacketTranslator<ClientboundLevelE
session.sendUpstreamPacket(soundEventPacket); session.sendUpstreamPacket(soundEventPacket);
return; return;
} }
// Half of these are listed in Cloudburst as Trail instead of Trial for some reason
case PARTICLES_TRIAL_SPAWNER_DETECT_PLAYER -> { case PARTICLES_TRIAL_SPAWNER_DETECT_PLAYER -> {
// Particles spawn here // Particles spawn here
TrialSpawnerDetectEventData eventData = (TrialSpawnerDetectEventData) packet.getData(); TrialSpawnerDetectEventData eventData = (TrialSpawnerDetectEventData) packet.getData();
effectPacket.setType(org.cloudburstmc.protocol.bedrock.data.LevelEvent.PARTICLE_TRAIL_SPAWNER_DETECTION); effectPacket.setType(org.cloudburstmc.protocol.bedrock.data.LevelEvent.PARTICLE_TRIAL_SPAWNER_DETECTION);
// 0.75 is used here for Y instead of 0.5 to match Java Positioning. // 0.75 is used here for Y instead of 0.5 to match Java Positioning.
// 0.5 is what the BDS uses for positioning. // 0.5 is what the BDS uses for positioning.
effectPacket.setPosition(pos.sub(0.5f, 0.75f, 0.5f)); effectPacket.setPosition(pos.sub(0.5f, 0.75f, 0.5f));
@ -414,12 +413,12 @@ public class JavaLevelEventTranslator extends PacketTranslator<ClientboundLevelE
// if 0, use Orange Flames, // if 0, use Orange Flames,
// if 1, use Blue Flames for ominous spawners // if 1, use Blue Flames for ominous spawners
UnknownLevelEventData eventData = (UnknownLevelEventData) packet.getData(); UnknownLevelEventData eventData = (UnknownLevelEventData) packet.getData();
effectPacket.setType(org.cloudburstmc.protocol.bedrock.data.LevelEvent.PARTICLE_TRAIL_SPAWNER_SPAWNING); effectPacket.setType(org.cloudburstmc.protocol.bedrock.data.LevelEvent.PARTICLE_TRIAL_SPAWNER_SPAWNING);
effectPacket.setData(eventData.getData()); effectPacket.setData(eventData.getData());
} }
case PARTICLES_TRIAL_SPAWNER_SPAWN -> { case PARTICLES_TRIAL_SPAWNER_SPAWN -> {
UnknownLevelEventData eventData = (UnknownLevelEventData) packet.getData(); UnknownLevelEventData eventData = (UnknownLevelEventData) packet.getData();
effectPacket.setType(org.cloudburstmc.protocol.bedrock.data.LevelEvent.PARTICLE_TRAIL_SPAWNER_SPAWNING); effectPacket.setType(org.cloudburstmc.protocol.bedrock.data.LevelEvent.PARTICLE_TRIAL_SPAWNER_SPAWNING);
effectPacket.setData(eventData.getData()); effectPacket.setData(eventData.getData());
Random random = ThreadLocalRandom.current(); Random random = ThreadLocalRandom.current();
@ -430,9 +429,7 @@ public class JavaLevelEventTranslator extends PacketTranslator<ClientboundLevelE
playSoundPacket.setPitch(0.8f + random.nextFloat() * 0.3f); playSoundPacket.setPitch(0.8f + random.nextFloat() * 0.3f);
session.sendUpstreamPacket(playSoundPacket); session.sendUpstreamPacket(playSoundPacket);
} }
case PARTICLES_TRIAL_SPAWNER_SPAWN_ITEM -> { case PARTICLES_TRIAL_SPAWNER_SPAWN_ITEM -> effectPacket.setType(org.cloudburstmc.protocol.bedrock.data.LevelEvent.PARTICLE_TRIAL_SPAWNER_EJECTING);
effectPacket.setType(LevelEvent.PARTICLE_TRAIL_SPAWNER_EJECTING);
}
case SOUND_STOP_JUKEBOX_SONG -> { case SOUND_STOP_JUKEBOX_SONG -> {
String bedrockSound = session.getWorldCache().removeActiveRecord(origin); String bedrockSound = session.getWorldCache().removeActiveRecord(origin);
if (bedrockSound == null) { if (bedrockSound == null) {

View file

@ -10,7 +10,7 @@ netty-io-uring = "0.0.25.Final-SNAPSHOT"
guava = "29.0-jre" guava = "29.0-jre"
gson = "2.3.1" # Provided by Spigot 1.8.8 gson = "2.3.1" # Provided by Spigot 1.8.8
websocket = "1.5.1" websocket = "1.5.1"
protocol = "3.0.0.Beta2-20240616.144648-10" protocol = "3.0.0.Beta2-20240704.153116-14"
raknet = "1.0.0.CR3-20240416.144209-1" raknet = "1.0.0.CR3-20240416.144209-1"
mcauthlib = "e5b0bcc" mcauthlib = "e5b0bcc"
mcprotocollib = "1.21-20240616.154144-5" mcprotocollib = "1.21-20240616.154144-5"