techage_modpack/minecart/init.lua

37 lines
824 B
Lua
Raw Normal View History

2020-05-31 23:31:18 +03:00
--[[
Minecart
========
Copyright (C) 2019-2020 Joachim Stolberg
MIT
See license.txt for more information
]]--
minecart = {}
-- Version for compatibility checks, see readme.md/history
2020-06-19 00:23:53 +03:00
minecart.version = 1.06
2020-05-31 23:31:18 +03:00
minecart.hopper_enabled = minetest.settings:get_bool("minecart_hopper_enabled") ~= false
print("minecart_hopper_enabled", dump(minetest.settings:get_bool("minecart_hopper_enabled")))
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")
end
dofile(MP.."/doc.lua")
minetest.log("info", "[MOD] Minecart loaded")