]> git.lizzy.rs Git - worldedit.git/commitdiff
Make worldedit_gui error non-fatal
authorwsor4035 <24964441+wsor4035@users.noreply.github.com>
Tue, 21 Sep 2021 18:47:57 +0000 (14:47 -0400)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 18:47:57 +0000 (20:47 +0200)
to allow worldedit to be used in worldmods

worldedit_gui/init.lua

index 08ecc1bd5489cb61510b5974d4547dc82597dacf..378abab3996c5fd8fd4772bec706cf85794b870c 100644 (file)
@@ -216,7 +216,7 @@ elseif minetest.global_exists("sfinv") then -- sfinv installed
                end
        end
 else
-       error(
+       return minetest.log("error",
                "worldedit_gui requires a supported gui management mod to be installed.\n"..
                "To use the it you need to either:\n"..
                "* use minetest_game or another sfinv-compatible subgame\n"..