From 2d8ff9f889450fb5c36016276997544aae98a350 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Fri, 23 Nov 2018 10:39:11 -0500 Subject: update digistuff, farming-redo, homedecor, hotbar, roads, pipeworks, prefab_redo, rgblightstone, signs_lib, street_signs, technic, unifieddyes, and worldedit --- worldedit_commands/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'worldedit_commands') diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 131c49b..763e895 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -905,9 +905,12 @@ minetest.register_chatcommand("/stretch", { stretchx, stretchy, stretchz = tonumber(stretchx), tonumber(stretchy), tonumber(stretchz) if stretchx == 0 or stretchy == 0 or stretchz == 0 then worldedit.player_notify(name, "invalid scaling factors: " .. param) + return nil end local count = check_region(name, param) - if count then return tonumber(stretchx) * tonumber(stretchy) * tonumber(stretchz) * count end + if count then + return stretchx * stretchy * stretchz * count + end return nil end), }) -- cgit v1.2.3