CRASHFIX: local ChatCmdBuilder was read after being called (in commands.lua)

This commit is contained in:
marco_a 2021-01-21 15:18:56 +01:00
parent e1a50988a6
commit 960ad40be8

View File

@ -28,12 +28,14 @@ local player_jump = 1.3 -- when in the minigame
})
if not minetest.get_modpath("lib_chatcmdbuilder") then
dofile(minetest.get_modpath("sumo") .. "/chatcmdbuilder.lua")
end
dofile(minetest.get_modpath("sumo") .. "/commands.lua")
dofile(minetest.get_modpath("sumo") .. "/items.lua")
dofile(minetest.get_modpath("sumo") .. "/minigame_manager.lua")
dofile(minetest.get_modpath("sumo") .. "/nodes.lua")
dofile(minetest.get_modpath("sumo") .. "/privs.lua")
if not minetest.get_modpath("lib_chatcmdbuilder") then
dofile(minetest.get_modpath("sumo") .. "/chatcmdbuilder.lua")
end