tools/lan_e2e.py: walls puts the wall halfway between the players

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-16 11:02:21 +02:00
parent 4410064c58
commit a8b6eea474
+2 -1
View File
@@ -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: