register tests only if enabled (#38)

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
This commit is contained in:
Buckaroo Banzai
2024-08-19 07:07:07 +02:00
committed by GitHub
parent cb6471e266
commit 655486f465
2 changed files with 5 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ end)
dofile(modpath .. "/src/commands.lua")
if minetest.get_modpath("mtt") then
if minetest.get_modpath("mtt") and mtt.enabled then
-- register tests
dofile(modpath .. "/mtt.lua")
end