2023-03-26 12:57:39 -07:00
|
|
|
for _, mod in ipairs({ "hbhunger", "hunger_ng", "stamina" }) do
|
|
|
|
if minetest.get_modpath(mod) then
|
|
|
|
error("balanced_diet is not compatible w/ " .. mod)
|
|
|
|
end
|
2023-03-12 09:32:02 -07:00
|
|
|
end
|
|
|
|
|
2023-03-26 15:01:53 -07:00
|
|
|
futil.check_version({ year = 2023, month = 3, day = 26 })
|
2023-03-23 10:24:39 -07:00
|
|
|
|
2023-03-12 09:32:02 -07:00
|
|
|
balanced_diet = fmod.create()
|
|
|
|
|
2023-04-10 09:33:39 -07:00
|
|
|
balanced_diet.dofile("saturation_attribute")
|
2023-03-12 09:32:02 -07:00
|
|
|
balanced_diet.dofile("api")
|
2023-03-26 12:57:39 -07:00
|
|
|
balanced_diet.dofile("globalstep")
|
2023-03-19 14:38:05 -07:00
|
|
|
balanced_diet.dofile("chatcommands")
|
2023-03-23 10:24:39 -07:00
|
|
|
balanced_diet.dofile("saturation_hud")
|
2023-04-01 07:29:33 -07:00
|
|
|
balanced_diet.dofile("diet_hud")
|
2023-03-12 09:32:02 -07:00
|
|
|
balanced_diet.dofile("overrides")
|
2023-04-12 11:58:42 -07:00
|
|
|
balanced_diet.dofile("callbacks")
|
2023-03-19 14:38:05 -07:00
|
|
|
|
|
|
|
balanced_diet.dofile("compat", "init")
|