From 71fb8da0890f302cd7a37b79f0d3f9672cf6a6ab Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Mon, 28 Jun 2021 20:17:43 -0700 Subject: [PATCH] refactor s-tool init --- .../commands/selectors/init.lua | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/worldeditadditions_commands/commands/selectors/init.lua b/worldeditadditions_commands/commands/selectors/init.lua index 84a05cb..8e9ac32 100644 --- a/worldeditadditions_commands/commands/selectors/init.lua +++ b/worldeditadditions_commands/commands/selectors/init.lua @@ -6,17 +6,16 @@ -- Chat commands that operate on selections. -local we_c = worldeditadditions_commands -we_c.modpath = minetest.get_modpath("worldeditadditions_commands") +local we_cm = worldeditadditions_commands.modpath .. "/commands/selectors/" -dofile(we_c.modpath.."/commands/selectors/srel.lua") -dofile(we_c.modpath.."/commands/selectors/scentre.lua") -dofile(we_c.modpath.."/commands/selectors/scloud.lua") -dofile(we_c.modpath.."/commands/selectors/scol.lua") -dofile(we_c.modpath.."/commands/selectors/scube.lua") -dofile(we_c.modpath.."/commands/selectors/sfactor.lua") -dofile(we_c.modpath.."/commands/selectors/smake.lua") -dofile(we_c.modpath.."/commands/selectors/spop.lua") -dofile(we_c.modpath.."/commands/selectors/spush.lua") -dofile(we_c.modpath.."/commands/selectors/srect.lua") -dofile(we_c.modpath.."/commands/selectors/sstack.lua") +dofile(we_cm.."srel.lua") +dofile(we_cm.."scentre.lua") +dofile(we_cm.."scloud.lua") +dofile(we_cm.."scol.lua") +dofile(we_cm.."scube.lua") +dofile(we_cm.."sfactor.lua") +dofile(we_cm.."smake.lua") +dofile(we_cm.."spop.lua") +dofile(we_cm.."spush.lua") +dofile(we_cm.."srect.lua") +dofile(we_cm.."sstack.lua")