From d23d5d4cfeaf3e29a67e305d7c9b80c2a0ccfb56 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sat, 22 Mar 2014 19:31:25 +0000 Subject: More reliable food overrides Use reliable optional dependencies instead of a 0.5 second delay. --- hunger.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'hunger.lua') diff --git a/hunger.lua b/hunger.lua index 106fe6c..28ca010 100644 --- a/hunger.lua +++ b/hunger.lua @@ -54,7 +54,6 @@ local function overwrite(name, hunger_change, replace_with_item, poisen) minetest.registered_items[name] = tab end -minetest.after(0.5, function()--ensure all other mods get loaded overwrite("default:apple", 2) if minetest.get_modpath("farming") ~= nil then overwrite("farming:bread", 4) @@ -164,4 +163,3 @@ if minetest.get_modpath("mtfoods") ~= nil then overwrite("mtfoods:apple_cider", 2) overwrite("mtfoods:cider_rack", 2) end -end) -- cgit v1.2.3