Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

Merge commit '51946c9e4585a2e7f2e4af01af893fb6c1cfad0e' into s6179

Ludovic Marie026f3125f4a2
diff --cc crates/horizon-client/src/game/persist.rs
index e4137bbf6,ac3c29d3d..b29b41115
--- a/crates/horizon-client/src/game/persist.rs
+++ b/crates/horizon-client/src/game/persist.rs
@@@ -434,14 -440,15 +440,20 @@@ impl Game<'_>
});
}
}
+ "minecraft:trident" => {
+ if let Some(n) = entity_nbt::trident_from_nbt(&tag) {
+ self.tridents
+ .push(super::trident::ThrownTrident::from_nbt(n));
+ }
+ }
"minecraft:firework_rocket" => {
if let Some(r) = entity_nbt::firework_rocket_from_nbt(&tag, player_uuid) {
- self.rockets.push(super::fireworks::Rocket::from_nbt(r));
+ self.next_entity += 1;
+ let id = self.next_entity;
+ let mut rocket = super::fireworks::Rocket::from_nbt(r);
+ rocket.id = id;
+ self.rockets.push(rocket);
+ self.remember(id, uuid, tag);
}
}
// PrimedTnt.readAdditionalSaveData: its fuse (80 when absent) and motion.
diff --cc crates/horizon-client/src/game/scoreboard.rs
index 0a6b3d6b5,659dbb8f4..ac410ab51
--- a/crates/horizon-client/src/game/scoreboard.rs
+++ b/crates/horizon-client/src/game/scoreboard.rs
@@@ -221,9 -220,14 +221,15 @@@ impl Game<'_>
| Target::Boat(id)
| Target::Cart(id)
| Target::Tnt(id)
+ | Target::Orb(id)
+ | Target::Projectile(id)
+ | Target::Crystal(id)
+ | Target::Dragon(id)
+ | Target::Rocket(id)
| Target::Other(id) => self.persist.raw.get(&id),
Target::Player => self.level.player_extra.as_ref(),
+ // A server's player: the saved compound the guest's file is written from.
+ Target::Guest(conn) => self.command_guest(conn).and_then(|g| g.saved.as_ref()),
Target::Spawner(id) => self
.ominous_spawners
.iter()