mirror of
https://github.com/minetest-mods/areas.git
synced 2024-11-14 22:50:19 +01:00
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
|
||||
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."
|
||||
|
|
Loading…
Reference in New Issue
Block a user