From 984a06e582ef9c28a18c09fce4a5c0f19b2bb9f1 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Fri, 16 Oct 2026 10:24:07 +0200 Subject: [PATCH] tools/lan_e2e.py: feedback expects the rounded position and closes the chat Co-Authored-By: Claude Opus 5.5 --- tools/lan_e2e.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/lan_e2e.py b/tools/lan_e2e.py index 4f6443485..6f0a79b81 100755 --- a/tools/lan_e2e.py +++ b/tools/lan_e2e.py @@ -455,7 +455,7 @@ def check_containers(host, guest, out): def check_feedback(host, guest, out): - x, y, z = pos_of(guest) + x, y, z = (round(v, 1) for v in pos_of(guest)) guest('command', command='item replace entity @s weapon.mainhand with minecraft:stick') guest('command', command=f'tp @s {x:.1f} {y:.1f} {z:.1f}') guest.wait(10) @@ -464,9 +464,12 @@ def check_feedback(host, guest, out): guest.wait(5) guest.shot(out, 'feedback') guest.raw('key', 'esc', 'tap') + guest.wait(5) + screen = guest('state').get('screen') replaced = f'Replaced 1 slot(s) on {GUEST_NAME} with [Stick]' assert any(replaced in line for line in chat), f'no "{replaced}" in {chat}' assert any(line.startswith(f'Teleported {GUEST_NAME} to {x:.6f}') for line in chat), f'teleport feedback: {chat}' + assert screen in (None, 'playing'), f'the chat did not close: {screen}' return chat