From e0783cf8bfa09f7131f0b007d32ad40b9ce9c35c Mon Sep 17 00:00:00 2001 From: sys4 Date: Mon, 15 Jun 2020 01:10:47 +0200 Subject: [PATCH] =?UTF-8?q?Corrige=20crash=20au=20d=C3=A9marrage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chatcommands.lua | 2 +- internal.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chatcommands.lua b/chatcommands.lua index 6af4df2..ab918f3 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -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 diff --git a/internal.lua b/internal.lua index 39a9a00..a1b2ee7 100644 --- a/internal.lua +++ b/internal.lua @@ -225,7 +225,8 @@ function areas:canPlayerAddArea(pos1, pos2, name) (pos2.x - pos1.x) > max_size.x or (pos2.y - pos1.y) > max_size.y or (pos2.z - pos1.z) > max_size.z then - return false, S("Area is too big.") + return false, S("Area is too big.") + end end -- Check number of areas the user has and make sure it not above the max