Implement some safety mechanisms

This commit is contained in:
Daniel Sosa
2015-02-16 04:15:52 +00:00
parent f8f1f3b9cc
commit 48f3f59fc3
2 changed files with 15 additions and 5 deletions

View File

@ -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))