From ea8a91568ec0f10125499d2bad99a803e5dd8077 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 31 Oct 2021 19:48:51 +0000 Subject: [PATCH] //spiral2: fix crash in parser --- worldeditadditions_commands/commands/spiral2.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldeditadditions_commands/commands/spiral2.lua b/worldeditadditions_commands/commands/spiral2.lua index 5dbe9be..aa9529f 100644 --- a/worldeditadditions_commands/commands/spiral2.lua +++ b/worldeditadditions_commands/commands/spiral2.lua @@ -36,21 +36,21 @@ worldedit.register_command("spiral2", { if #parts >= 1 then interval = tonumber(parts[1]) if not interval then - return false, "Error: Invalid interval value '"..parts[1].."'. Interval values must be integers." + return false, "Error: Invalid interval value '"..tostring(parts[1]).."'. Interval values must be integers." end table.remove(parts, 1) end if #parts >= 1 then acceleration = tonumber(parts[1]) if not acceleration then - return false, "Error: Invalid acceleration value '"..parts[1].."'. Acceleration values must be integers." + return false, "Error: Invalid acceleration value '"..tostring(parts[1]).."'. Acceleration values must be integers." end table.remove(parts, 1) end local target_node_norm = worldedit.normalize_nodename(target_node) if not target_node_norm then - return false, "Error: Unknown node '"..target_node_norm.."'." + return false, "Error: Unknown node '"..tostring(target_node).."'." end return true, mode, target_node_norm, interval, acceleration