From 2e730b9213ce6be4b0dded9545a0553b51b987b6 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 19 Oct 2026 05:28:27 +0200 Subject: [PATCH] lan_e2e: tidy the hazards box from the host The void can kill the guest before the hazards check tidies its stone box, and the LAN server drops a dead guest's packets, so the box stayed: the guest suffocated in it during pvp, and the hurt check's pig with it. The host runs the tidying fills instead. Co-Authored-By: Claude Opus 5.5 --- tools/lan_e2e.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/lan_e2e.py b/tools/lan_e2e.py index 144ed6961..9f494b022 100755 --- a/tools/lan_e2e.py +++ b/tools/lan_e2e.py @@ -554,11 +554,13 @@ def check_hazards(host, guest, out): guest('command', command=f'tp @s {x + 0.5} -140 {z + 0.5}') hurt[name] = (before, first_hurt(guest, before, ticks)) guest.shot(out, f'hazards-{name}') + # The host tidies up: the void can kill the guest before this, the server drops a dead + # guest's packets (lan_guest_packet), and the box left standing suffocated it in pvp. # Water puts the lava's fire out. - guest('command', command=f'fill {x} {y} {z} {x} {y + 1} {z} minecraft:water') + host('command', command=f'fill {x} {y} {z} {x} {y + 1} {z} minecraft:water') guest.wait(5) - guest('command', command=f'fill {x - 1} {y - 1} {z - 1} {x + 1} {y + 2} {z + 1} minecraft:air') - guest('command', command=f'fill {x - 1} {y - 1} {z - 1} {x + 1} {y - 1} {z + 1} minecraft:stone') + host('command', command=f'fill {x - 1} {y - 1} {z - 1} {x + 1} {y + 2} {z + 1} minecraft:air') + host('command', command=f'fill {x - 1} {y - 1} {z - 1} {x + 1} {y - 1} {z + 1} minecraft:stone') guest.wait(20) if remote(guest)['health'] <= 0: guest.raw('respawn')