From 024424ee8b4a1b535f32528863a2f347c0a357a0 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Wed, 3 Apr 2019 10:17:47 -0700 Subject: [PATCH] Also limit chatcommand area_pos[12] positions. --- pos.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pos.lua b/pos.lua index f969aaa..72bda48 100644 --- a/pos.lua +++ b/pos.lua @@ -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)