summaryrefslogtreecommitdiff
path: root/worldedit_commands/cuboidapi.lua
diff options
context:
space:
mode:
authorDaniel Sosa <sosa.daniel23@gmail.com>2015-01-06 13:20:58 +0000
committerDaniel Sosa <sosa.daniel23@gmail.com>2016-07-03 21:44:02 -0500
commit04d20de4cd9bc55fc37889ee53fd827e5ebcf9a0 (patch)
treea642a75cc0006ea356463c3faeb625d28344930d /worldedit_commands/cuboidapi.lua
parent859c6bd12a45a8c9c5ad25675b2916f39937e261 (diff)
Fix several typos
Diffstat (limited to 'worldedit_commands/cuboidapi.lua')
-rw-r--r--worldedit_commands/cuboidapi.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/worldedit_commands/cuboidapi.lua b/worldedit_commands/cuboidapi.lua
index d473571..08b364a 100644
--- a/worldedit_commands/cuboidapi.lua
+++ b/worldedit_commands/cuboidapi.lua
@@ -1,5 +1,5 @@
-- Expands or contracts the cuboid in all axes by amount (positive or negative)
-worldedit.cuboid_volumetricexpand = function(name, amount)
+worldedit.cuboid_volumetric_expand = function(name, amount)
local pos1 = worldedit.pos1[name]
local pos2 = worldedit.pos2[name]
@@ -9,14 +9,14 @@ worldedit.cuboid_volumetricexpand = function(name, amount)
local delta1 = vector.new()
local delta2 = vector.new()
- local deltadir1
- local deltadir2
+ local delta_dir1
+ local delta_dir2
delta1 = vector.add(delta1, amount)
delta2 = vector.add(delta2, amount)
- deltadir1, deltadir2 = worldedit.get_expansion_directions(pos1, pos2)
- delta1 = vector.multiply(delta1, deltadir1)
- delta2 = vector.multiply(delta2, deltadir2)
+ delta_dir1, delta_dir2 = worldedit.get_expansion_directions(pos1, pos2)
+ delta1 = vector.multiply(delta1, delta_dir1)
+ delta2 = vector.multiply(delta2, delta_dir2)
worldedit.pos1[name] = vector.add(pos1, delta1)
worldedit.pos2[name] = vector.add(pos2, delta2)
@@ -25,7 +25,7 @@ end
-- Expands or contracts the cuboid in a single axis by amount (positive or negative)
-worldedit.cuboid_linealexpand = function(name, axis, direction, amount)
+worldedit.cuboid_linear_expand = function(name, axis, direction, amount)
local pos1 = worldedit.pos1[name]
local pos2 = worldedit.pos2[name]