2020-05-31 23:31:18 +03:00
|
|
|
--[[
|
|
|
|
|
|
|
|
Minecart
|
|
|
|
========
|
|
|
|
|
|
|
|
Copyright (C) 2019-2020 Joachim Stolberg
|
|
|
|
|
|
|
|
MIT
|
|
|
|
See license.txt for more information
|
2020-10-25 23:32:47 +03:00
|
|
|
|
2020-05-31 23:31:18 +03:00
|
|
|
]]--
|
|
|
|
|
|
|
|
minecart = {}
|
|
|
|
|
|
|
|
-- Version for compatibility checks, see readme.md/history
|
2020-12-11 20:07:29 +03:00
|
|
|
minecart.version = 1.10
|
2020-05-31 23:31:18 +03:00
|
|
|
|
|
|
|
minecart.hopper_enabled = minetest.settings:get_bool("minecart_hopper_enabled") ~= false
|
2020-12-11 20:07:29 +03:00
|
|
|
minecart.teleport_enabled = minetest.settings:get_bool("minecart_teleport_enabled") == true
|
2020-05-31 23:31:18 +03:00
|
|
|
|
|
|
|
minecart.S = minetest.get_translator("minecart")
|
|
|
|
local MP = minetest.get_modpath("minecart")
|
|
|
|
dofile(MP.."/storage.lua")
|
|
|
|
dofile(MP.."/lib.lua")
|
2020-06-19 00:23:53 +03:00
|
|
|
dofile(MP.."/monitoring.lua")
|
|
|
|
dofile(MP.."/recording.lua")
|
|
|
|
dofile(MP.."/minecart.lua")
|
2020-05-31 23:31:18 +03:00
|
|
|
dofile(MP.."/buffer.lua")
|
|
|
|
dofile(MP.."/protection.lua")
|
|
|
|
|
|
|
|
if minecart.hopper_enabled then
|
|
|
|
dofile(MP.."/hopper.lua")
|
2020-09-13 14:24:06 +03:00
|
|
|
dofile(MP.."/mods_support.lua")
|
2020-05-31 23:31:18 +03:00
|
|
|
end
|
|
|
|
dofile(MP.."/doc.lua")
|
|
|
|
minetest.log("info", "[MOD] Minecart loaded")
|