mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-07-01 15:40:39 +02:00
Implement some safety mechanisms
This commit is contained in:
@ -109,7 +109,7 @@ minetest.register_chatcommand("/shift", {
|
||||
end
|
||||
|
||||
if axis == nil or dir == nil then
|
||||
return false, "Invalid"
|
||||
return false, "Invalid if looking straight up or down"
|
||||
end
|
||||
|
||||
assert(worldedit.cuboid_shift(name, axis, amount * dir))
|
||||
|
Reference in New Issue
Block a user