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
/data get entity @s prints the acting player's own UUID, not the world owner's
ClickingMaster755d2215c513
diff --git a/crates/horizon-client/src/game/commands/data.rs b/crates/horizon-client/src/game/commands/data.rsindex fc82fbef5..871ed9214 100644--- a/crates/horizon-client/src/game/commands/data.rs+++ b/crates/horizon-client/src/game/commands/data.rs@@ -68,7 +68,12 @@ impl Game<'_> {.flatten()}fn entity_nbt_in_level(&mut self, t: Target) -> Option<Tag> {- let player_uuid = self.level.player_uuid;+ // The acting player's own UUID: a guest's turn (the window's player on+ // the server thread) keeps the world owner's in `level`.+ let player_uuid = self+ .lan_acting_uuid+ .map(horizon_client::lan::playerdata::uuid_ints)+ .or(self.level.player_uuid);Some(match t {Target::Guest(_) => {return selfdiff --git a/tools/lan_e2e.py b/tools/lan_e2e.pyindex e2c2d8d44..5dad3a8bc 100755--- a/tools/lan_e2e.py+++ b/tools/lan_e2e.py@@ -10989,6 +10989,22 @@ CHECKS += ['pet_death']CHECK_FNS['pet_death'] = check_pet_death+def check_data_uuid(host, guest, out):+ """EntityDataAccessor: `/data get entity @s UUID` prints the player who runs it, their own+ offline UUID, for the guest and for the host (a server player too), not the world owner's."""+ seen = {}+ for game, name in ((guest, GUEST_NAME), (host, host.player)):+ reply = server_reply(game, 'data get entity @s UUID', '[I;')+ seen[name] = ','.join(re.findall(r'-?\d+', reply.partition('[I;')[2].partition(']')[0]))+ for name, ints in seen.items():+ assert ints == offline_uuid_ints(name), f"{name}'s UUID is not their own: {seen}"+ return seen+++CHECKS += ['data_uuid']+CHECK_FNS['data_uuid'] = check_data_uuid++def check_arrow_pickup(host, guest, out):"""ClientPacketListener.handleTakeItemEntity (#4486): an arrow a player picks up(AbstractArrow.playerTouch, once in the ground) flies into them on every client, the