From edd27636a6a6f0db2ec70c85eec76eeebdc33436 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 9 May 2020 22:34:29 +0200 Subject: [PATCH] Do not allow //mix with no nodes --- worldedit_commands/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 4e5edbe..28b61c5 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -574,6 +574,9 @@ worldedit.register_command("mix", { nodes[#nodes + 1] = node end end + if #nodes == 0 then + return false + end return true, nodes end, nodes_needed = check_region,