mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-27 17:43:44 +01:00
Small tweak
This commit is contained in:
parent
98924e6782
commit
ed4e726c7f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user