From 6bba3ad79438bbaeb4db009a06cf7706f20e4250 Mon Sep 17 00:00:00 2001 From: Joseph Pickard Date: Sun, 10 Jan 2016 15:51:15 -0500 Subject: [PATCH] --- pos.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pos.lua b/pos.lua index 3f19da0..0baec92 100644 --- a/pos.lua +++ b/pos.lua @@ -119,22 +119,22 @@ minetest.register_chatcommand("area_pos", { }) function areas.useWorldedit(playerName) - if worldedit or minetest.get_modpath("worldedit") then + if worldedit then if nil == playerName then return true; elseif minetest.check_player_privs(playerName, {worldedit = true}) then return true; end - else - return false; end + return false; end function areas:getPos(playerName) + local pos1, pos2 = nil, nil; if areas.useWorldedit(playerName) then - local pos1, pos2 = worldedit.pos1[playerName], worldedit.pos2[playerName]; + pos1, pos2 = worldedit.pos1[playerName], worldedit.pos2[playerName]; else - local pos1, pos2 = areas.pos1[playerName], areas.pos2[playerName]; + pos1, pos2 = areas.pos1[playerName], areas.pos2[playerName]; end if not (pos1 and pos2) then