forked from nalc/areas
Fix self protection max areas off-by-one error
This commit is contained in:
parent
54f9f78c4b
commit
72d26dad25
@ -130,7 +130,7 @@ function areas:canPlayerAddArea(pos1, pos2, name)
|
|||||||
count = count + 1
|
count = count + 1
|
||||||
end
|
end
|
||||||
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"
|
return false, "You have reached the maximum amount"
|
||||||
.." of areas that you are allowed to"
|
.." of areas that you are allowed to"
|
||||||
.." protect."
|
.." protect."
|
||||||
|
Loading…
Reference in New Issue
Block a user