Skip to content

Commit 5862e71

Browse files
luk3yxMoNTE48
authored andcommitted
Rename /move_area to /move_area_by so it doesn't conflict with another command
1 parent edd85cd commit 5862e71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Commands
101101

102102
* `/area_open <ID>` -- Toggle open/closed the specified area for everyone.
103103

104-
* `/move_area <ID> <X|Y|Z> <Amount>` -- Moves an area in the specified
104+
* `/move_area_rel <ID> <X|Y|Z> <Amount>` -- Moves an area in the specified
105105
direction.
106106
For example, to move area 1 west by 10 nodes:
107107

chatcommands.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ local function move_or_resize_area(name, param, resize)
500500
local id, dir, amount = param:match("^(%d+)%s([XYZxyz])%s([%-%d]+)$")
501501
amount = tonumber(amount)
502502
if not amount then
503-
return false, S("Invalid usage, see /help @1.", resize and "resize_area" or "move_area")
503+
return false, S("Invalid usage, see /help @1.", resize and "resize_area" or "move_area_by")
504504
end
505505

506506
id = tonumber(id)
@@ -538,7 +538,7 @@ local function move_or_resize_area(name, param, resize)
538538
return true, resize and S("Area resized.") or S("Area moved.")
539539
end
540540

541-
minetest.register_chatcommand("move_area", {
541+
minetest.register_chatcommand("move_area_by", {
542542
params = S("<ID>").." "..S("<X|Y|Z>").." "..S("<Amount>"),
543543
description = S("Moves an area"),
544544
func = function(name, param)

0 commit comments

Comments
 (0)