diff options
author | James Stevenson <everamzah@gmail.com> | 2016-09-09 14:17:22 -0400 |
---|---|---|
committer | James Stevenson <everamzah@gmail.com> | 2016-09-09 14:17:22 -0400 |
commit | d9876ee60570c8619bcfb50562739d5743b2c90d (patch) | |
tree | 58dfe9cac5511e6d45bf84f9289687b81c828a4a | |
parent | f2d08f1b4d12ca6ade72e6e05396ec14732b47f0 (diff) |
Fewer vars.
-rw-r--r-- | init.lua | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |