summaryrefslogtreecommitdiff
path: root/worldedit_commands
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-11-23 10:39:11 -0500
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-11-23 10:39:11 -0500
commit2d8ff9f889450fb5c36016276997544aae98a350 (patch)
tree636ddf5e6a9b444a60d7cab82e93ccffb037355d /worldedit_commands
parent646d696c62a6b408100e65164b5cd71a4793ab9b (diff)
downloaddreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar
dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar.gz
dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar.bz2
dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar.xz
dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.zip
update digistuff, farming-redo, homedecor, hotbar, roads,
pipeworks, prefab_redo, rgblightstone, signs_lib, street_signs, technic, unifieddyes, and worldedit
Diffstat (limited to 'worldedit_commands')
-rw-r--r--worldedit_commands/init.lua5
1 files changed, 4 insertions, 1 deletions
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),
})