From 5128203dccc38eeec732bbae899a0a3b3f845175 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 10 Feb 2022 18:31:08 +0100 Subject: [PATCH] Don't autowin level in editor --- mods/lzr_levels/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/lzr_levels/init.lua b/mods/lzr_levels/init.lua index e8f6da6..dc5c0da 100644 --- a/mods/lzr_levels/init.lua +++ b/mods/lzr_levels/init.lua @@ -148,7 +148,7 @@ function lzr_levels.build_level(level) -- Propagate lasers and check for insta-win lzr_laser.full_laser_update(lzr_globals.PLAYFIELD_START, lzr_globals.PLAYFIELD_END) local done = lzr_laser.check_level_won() - if done then + if done and lzr_gamestate.get_state() ~= lzr_gamestate.EDITOR then lzr_levels.level_complete() end else