Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.
Rust differential-testinggame-enginegamedevlinuxminecraftminecraft-javareimplementationrustvoxelvulkanwgpu
Merge pull request #6460 from some-du6e/fix/fireworks-remote
Ludovic Marie8d93d68f1d38
diff --cc crates/horizon-client/src/game/remote.rsindex f6fa60f8c,7e49e1e4f..2023f3bc5--- a/crates/horizon-client/src/game/remote.rs+++ b/crates/horizon-client/src/game/remote.rs@@@ -7758,17 -7712,14 +7778,23 @@@ impl Game<'_>return false;}let gliding = self.player.as_ref().is_some_and(|p| p.fall_flying);+ // FireworkRocketItem.use while gliding: SUCCESS (SwingSource.PREDICTED),+ // so startUseItem swings this hand itself; a vanilla server swings it+ // for the other players only.+ if gliding && &*held.item == "minecraft:firework_rocket" {+ self.with_hand(hand, Game::swing_arm);+ }// A stack's own `blocks_attacks` raises it as a shield's does.- use_ends_click(&info, gliding) || self.blocks_attacks(&held).is_some()+ let blocks = self.blocks_attacks(&held).is_some();+ let ends = use_ends_click(&info, gliding) || blocks;+ // MultiPlayerGameMode.useItem: `ItemStack.use`'s SUCCESS swings+ // (SwingSource.CLIENT); CONSUME does not — a bow, crossbow, trident+ // or spear starting its charge, and `ItemUtils.startUsingInstantly`'s+ // food, drink, spyglass, shield and goat horn.+ if ends && !blocks && remote_use_swings(&held, info.consumable.is_some()) {+ self.with_hand(hand, Game::swing_arm);+ }+ ends}/// Whether `held`'s `Item.use` needs a target this client sees none of