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
Allow ref bindings in the entity match macro
HrafnaValkyrja133408899f8f
diff --git a/crates/horizon-client/src/game/entity.rs b/crates/horizon-client/src/game/entity.rsindex e35d6a47f..68f6a917d 100644--- a/crates/horizon-client/src/game/entity.rs+++ b/crates/horizon-client/src/game/entity.rs@@ -119,6 +119,8 @@ macro_rules! match_entity {$($kind:ident: $($list:ident).+,)*) => {match $handle {$($crate::game::entity::EntityHandle::$kind(i) => {+ // `ref` or `ref mut`, chosen by the caller.+ #[allow(clippy::toplevel_ref_arg)]let $binding = $game$(.$list)+[i];$body})*