mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-25 02:00:40 +01:00
Remove redundant if
This commit is contained in:
parent
ed7f57bf2f
commit
54f9f78c4b
@ -124,7 +124,6 @@ function areas:canPlayerAddArea(pos1, pos2, name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Check number of areas the user has and make sure it not above the max
|
-- Check number of areas the user has and make sure it not above the max
|
||||||
if self.self_protection then
|
|
||||||
local count = 0
|
local count = 0
|
||||||
for _, area in pairs(self.areas) do
|
for _, area in pairs(self.areas) do
|
||||||
if area.owner == name then
|
if area.owner == name then
|
||||||
@ -136,7 +135,6 @@ function areas:canPlayerAddArea(pos1, pos2, name)
|
|||||||
.." of areas that you are allowed to"
|
.." of areas that you are allowed to"
|
||||||
.." protect."
|
.." protect."
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
-- Check intersecting areas
|
-- Check intersecting areas
|
||||||
for _, area in pairs(self.areas) do
|
for _, area in pairs(self.areas) do
|
||||||
|
Loading…
Reference in New Issue
Block a user