From a8b6eea47418d662bf28ae77c85b8704d67283b4 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Fri, 16 Oct 2026 11:02:21 +0200 Subject: [PATCH] tools/lan_e2e.py: walls puts the wall halfway between the players Co-Authored-By: Claude Opus 5.5 --- tools/lan_e2e.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lan_e2e.py b/tools/lan_e2e.py index d3094e09f..3c292c614 100755 --- a/tools/lan_e2e.py +++ b/tools/lan_e2e.py @@ -537,7 +537,8 @@ def check_walls(host, guest, out): face_each_other(host, guest) hx, hy, hz = pos_of(host) gx, gy, gz = pos_of(guest) - wall = int(hx // 1) + 1 + # Halfway: the players stand 3 apart, so the wall's block touches neither. + wall = int((hx + gx) / 2 // 1) host('command', command=f'fill {wall} {int(hy // 1)} {int(hz // 1) - 3} {wall} {int(hy // 1) + 4} ' f'{int(hz // 1) + 3} minecraft:stone') try: