summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-01-15 20:14:24 -0500
committerShadowNinja <shadowninja@minetest.net>2014-01-15 20:14:24 -0500
commit72d26dad251148629e5e5221bec04cd17c090425 (patch)
tree2cd494d3dd1a442f742f62b9d8496e54c3b9df44
parent54f9f78c4bee7923f5c389e41356c0c8f2d5ae48 (diff)
Fix self protection max areas off-by-one error
-rw-r--r--internal.lua2
1 files changed, 1 insertions, 1 deletions
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."