forked from nalc/areas
Corrige crash au démarrage
This commit is contained in:
parent
0b2baacb92
commit
e0783cf8bf
@ -397,7 +397,7 @@ minetest.register_chatcommand("area_info", {
|
||||
elseif has_high_limit then
|
||||
table.insert(lines,
|
||||
S("You have extended area protection"..
|
||||
" limits (\"areas_high_limit\" privilege).")
|
||||
" limits (\"areas_high_limit\" privilege)."))
|
||||
elseif privs.megabuilder then
|
||||
table.insert(lines, "You are a megabuilder (\"megabuilder\" privilege).")
|
||||
end
|
||||
|
@ -227,6 +227,7 @@ function areas:canPlayerAddArea(pos1, pos2, name)
|
||||
(pos2.z - pos1.z) > max_size.z then
|
||||
return false, S("Area is too big.")
|
||||
end
|
||||
end
|
||||
|
||||
-- Check number of areas the user has and make sure it not above the max
|
||||
local count = 0
|
||||
|
Loading…
Reference in New Issue
Block a user