diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-01-15 20:14:24 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-01-15 20:14:24 -0500 |
commit | 72d26dad251148629e5e5221bec04cd17c090425 (patch) | |
tree | 2cd494d3dd1a442f742f62b9d8496e54c3b9df44 | |
parent | 54f9f78c4bee7923f5c389e41356c0c8f2d5ae48 (diff) |
Fix self protection max areas off-by-one error
-rw-r--r-- | internal.lua | 2 |
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." |