1
0
镜像自地址 https://github.com/rubenwardy/food.git 已同步 2026-01-02 13:05:18 +01:00

Release 2.2 - support for diet mod

这个提交包含在:
rubenwardy
2014-04-13 19:10:36 +01:00
父节点 230ea9bf54
当前提交 fa8223d0b2
修改 2 个文件,包含 6 行新增4 行删除

查看文件

@@ -3,7 +3,7 @@ The Food Mod
This is the main mod in the food mod collection. This is the main mod in the food mod collection.
Version 2.1 Version 2.2
The Aims The Aims
-------- --------

查看文件

@@ -7,7 +7,7 @@
-- basic foods -- basic foods
-- ===================================== -- =====================================
print("Food Mod - Version 2.1") print("Food Mod - Version 2.2")
-- Boilerplate to support localized strings if intllib mod is installed. -- Boilerplate to support localized strings if intllib mod is installed.
local S local S
@@ -23,7 +23,7 @@ food = {
atsup = {}, atsup = {},
df = {}, df = {},
debug = false, debug = false,
version = 2.1 version = 2.2
} }
-- Checks for external content, and adds support -- Checks for external content, and adds support
@@ -82,7 +82,9 @@ end
-- Checks for hunger mods to register food on -- Checks for hunger mods to register food on
function food.item_eat(amt) function food.item_eat(amt)
if minetest.get_modpath("hud") then if minetest.get_modpath("diet") then
return diet.item_eat(amt)
elseif minetest.get_modpath("hud") then
return hud.item_eat(amt) return hud.item_eat(amt)
else else
return minetest.item_eat(amt) return minetest.item_eat(amt)