mirror of
https://repo.or.cz/minetest_hbarmor.git
synced 2024-11-14 14:50:18 +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
|
minetest.registered_items[name] = tab
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.after(0.5, function()--ensure all other mods get loaded
|
||||||
overwrite("default:apple", 2)
|
overwrite("default:apple", 2)
|
||||||
if minetest.get_modpath("farming") ~= nil then
|
if minetest.get_modpath("farming") ~= nil then
|
||||||
overwrite("farming:bread", 4)
|
overwrite("farming:bread", 4)
|
||||||
|
@ -28,6 +29,7 @@ end
|
||||||
|
|
||||||
if minetest.get_modpath("mobs") ~= nil then
|
if minetest.get_modpath("mobs") ~= nil then
|
||||||
overwrite("mobs:meat", 6)
|
overwrite("mobs:meat", 6)
|
||||||
|
overwrite("mobs:meat_raw", 3)
|
||||||
overwrite("mobs:rat_cooked", 5)
|
overwrite("mobs:rat_cooked", 5)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -48,3 +50,4 @@ if minetest.get_modpath("dwarves") ~= nil then
|
||||||
overwrite("dwarves:tequila_with_lime", 2)
|
overwrite("dwarves:tequila_with_lime", 2)
|
||||||
overwrite("dwarves:sake", 2)
|
overwrite("dwarves:sake", 2)
|
||||||
end
|
end
|
||||||
|
end)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user