From 72d26dad251148629e5e5221bec04cd17c090425 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Wed, 15 Jan 2014 20:14:24 -0500 Subject: [PATCH] Fix self protection max areas off-by-one error --- internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal.lua b/internal.lua index 8a3634b..338187a 100644 --- a/internal.lua +++ b/internal.lua @@ -130,7 +130,7 @@ function areas:canPlayerAddArea(pos1, pos2, name) count = count + 1 end end - if count > self.self_protection_max_areas then + if count >= self.self_protection_max_areas then return false, "You have reached the maximum amount" .." of areas that you are allowed to" .." protect."