summaryrefslogtreecommitdiff
path: root/hunger.lua
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2013-07-01 09:57:02 +0200
committerBlockMen <nmuelll@web.de>2013-07-01 09:57:02 +0200
commited4e726c7fba41c07fc9dc60f140d4de35af839f (patch)
tree0ddd70884e35ae231ab72f31185d881b5ee5db76 /hunger.lua
parent98924e6782d2c504d43a69e9c4666848014c1925 (diff)
Small tweak
Diffstat (limited to 'hunger.lua')
-rw-r--r--hunger.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/hunger.lua b/hunger.lua
index 44fcb43..ea92fd7 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -21,6 +21,7 @@ local function overwrite(name, hunger_change, replace_with_item)
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)
@@ -28,6 +29,7 @@ end
if minetest.get_modpath("mobs") ~= nil then
overwrite("mobs:meat", 6)
+ overwrite("mobs:meat_raw", 3)
overwrite("mobs:rat_cooked", 5)
end
@@ -48,3 +50,4 @@ if minetest.get_modpath("dwarves") ~= nil then
overwrite("dwarves:tequila_with_lime", 2)
overwrite("dwarves:sake", 2)
end
+end)