diff options
author | sfan5 <sfan5@live.de> | 2016-07-04 19:53:12 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2016-07-04 19:53:12 +0200 |
commit | 2aed4988493b76ac42ff4e39838998cb1330913e (patch) | |
tree | edb78c6939bc6835d5fd16943dbd44f52a624532 | |
parent | 0b68b2aec676e737930743e7136e21c97f0ff292 (diff) |
Add completion chat message to //expand and //contract
-rw-r--r-- | worldedit_commands/cuboid.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/worldedit_commands/cuboid.lua b/worldedit_commands/cuboid.lua index c588b74..065c2ca 100644 --- a/worldedit_commands/cuboid.lua +++ b/worldedit_commands/cuboid.lua @@ -129,7 +129,7 @@ minetest.register_chatcommand("/shift", { assert(worldedit.cuboid_shift(name, axis, amount * dir)) worldedit.marker_update(name) - return true, "region shifted by " .. amount .. " nodes" + return true, "Region shifted by " .. amount .. " nodes" end, } ) @@ -183,6 +183,7 @@ minetest.register_chatcommand("/expand", { worldedit.cuboid_linear_expand(name, axis, dir, amount) worldedit.cuboid_linear_expand(name, axis, -dir, rev_amount) worldedit.marker_update(name) + return true, "Region expanded by " .. (amount + rev_amount) .. " nodes" end, } ) @@ -236,6 +237,7 @@ minetest.register_chatcommand("/contract", { worldedit.cuboid_linear_expand(name, axis, dir, -amount) worldedit.cuboid_linear_expand(name, axis, -dir, -rev_amount) worldedit.marker_update(name) + return true, "Region contracted by " .. (amount + rev_amount) .. " nodes" end, } ) |