mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
fix megabuilder privs
fix wrong test always false for megabuilder (nil~=false)
This commit is contained in:
parent
63ba22f52f
commit
7151b6877b
@ -144,7 +144,7 @@ function areas:canPlayerAddArea(pos1, pos2, name)
|
||||
local max_areas = privs.areas_high_limit and
|
||||
self.config.self_protection_max_areas_high or
|
||||
self.config.self_protection_max_areas
|
||||
if count >= max_areas and minetest.get_player_privs(name)["megabuilder"] == false then
|
||||
if count >= max_areas and minetest.get_player_privs(name)["megabuilder"] ~= true then
|
||||
return false, "You have reached the maximum amount of"
|
||||
.." areas that you are allowed to protect."
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user