Skip to content

Commit 2aed498

Browse files
committedJul 4, 2016
Add completion chat message to //expand and //contract
1 parent 0b68b2a commit 2aed498

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

Diff for: ‎worldedit_commands/cuboid.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ minetest.register_chatcommand("/shift", {
129129
assert(worldedit.cuboid_shift(name, axis, amount * dir))
130130
worldedit.marker_update(name)
131131

132-
return true, "region shifted by " .. amount .. " nodes"
132+
return true, "Region shifted by " .. amount .. " nodes"
133133
end,
134134
}
135135
)
@@ -183,6 +183,7 @@ minetest.register_chatcommand("/expand", {
183183
worldedit.cuboid_linear_expand(name, axis, dir, amount)
184184
worldedit.cuboid_linear_expand(name, axis, -dir, rev_amount)
185185
worldedit.marker_update(name)
186+
return true, "Region expanded by " .. (amount + rev_amount) .. " nodes"
186187
end,
187188
}
188189
)
@@ -236,6 +237,7 @@ minetest.register_chatcommand("/contract", {
236237
worldedit.cuboid_linear_expand(name, axis, dir, -amount)
237238
worldedit.cuboid_linear_expand(name, axis, -dir, -rev_amount)
238239
worldedit.marker_update(name)
240+
return true, "Region contracted by " .. (amount + rev_amount) .. " nodes"
239241
end,
240242
}
241243
)

0 commit comments

Comments
 (0)
Please sign in to comment.