Fix self protection max areas off-by-one error

This commit is contained in:
ShadowNinja 2014-01-15 20:14:24 -05:00
parent 54f9f78c4b
commit 72d26dad25

View File

@ -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."