From 327aa5af6e710b1aa0e3e10652ce0453943b6710 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Fri, 16 Oct 2026 08:59:53 +0200 Subject: [PATCH] tools/lan_e2e.py: a world with commands, so the guest's commands run again Since #372 a guest's commands need the world's Allow Commands as well as the LAN's; the test's survival world had none, so every guest command (tp, gamemode, setblock) was refused and the checks built on them failed. Co-Authored-By: Claude Opus 5.5 --- tools/lan_e2e.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/lan_e2e.py b/tools/lan_e2e.py index 9f21cd590..ab46abef4 100755 --- a/tools/lan_e2e.py +++ b/tools/lan_e2e.py @@ -310,8 +310,12 @@ def run(ctl, out, resources, checks): results = {} try: host('launch', wait=False, offscreen=sys.platform == 'darwin') - host.raw('open', 'Lan', 5) + # Guests' commands need the world's Allow Commands as well as the LAN's (#372): a creative + # world has them; everyone plays in survival. + host.raw('open', 'Lan', 5, 'creative') host('wait_ready', seconds=400) + host('command', command='defaultgamemode survival') + host('command', command='gamemode survival') host('command', command='time set day') # An open stone floor around the host, so the players see each other and nothing is in the way. host('command', command='fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 minecraft:stone')