Also limit chatcommand area_pos[12] positions.

This commit is contained in:
Auke Kok 2019-04-03 10:17:47 -07:00
parent f70600db30
commit 024424ee8b
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ minetest.register_chatcommand("area_pos1", {
else
return false, "Invalid usage, see /help area_pos1."
end
pos = vector.round(pos)
pos = posLimit(vector.round(pos))
areas:setPos1(name, pos)
return true, "Area position 1 set to "
..minetest.pos_to_string(pos)
@ -77,7 +77,7 @@ minetest.register_chatcommand("area_pos2", {
else
return false, "Invalid usage, see /help area_pos2."
end
pos = vector.round(pos)
pos = posLimit(vector.round(pos))
areas:setPos2(name, pos)
return true, "Area position 2 set to "
..minetest.pos_to_string(pos)