From d9876ee60570c8619bcfb50562739d5743b2c90d Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Fri, 9 Sep 2016 14:17:22 -0400 Subject: Fewer vars. --- init.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 91c255a..8068154 100644 --- a/init.lua +++ b/init.lua @@ -85,10 +85,9 @@ minetest.register_chatcommand("pvp_areas", { minetest.chat_send_player(name, "Invalid usage. Type \"/help pvp_areas\" for more information.") else for k, v in pairs(pvp_areas) do - local id = k - 1 - local min = v.min - local max = v.max - minetest.chat_send_player(name, id .. ": " .. minetest.pos_to_string(min) .. " " .. minetest.pos_to_string(max)) + minetest.chat_send_player(name, k - 1 .. ": " .. + minetest.pos_to_string(v.min) .. " " .. + minetest.pos_to_string(v.max)) end end end -- cgit v1.2.3