mirror of
git://repo.or.cz/minetest_hbhunger.git
synced 2024-11-14 14:20:37 +01:00
Make dependency on default optional
This commit is contained in:
parent
f1f33a7fc4
commit
02db771b42
|
@ -1,5 +1,5 @@
|
|||
hudbars
|
||||
default
|
||||
default?
|
||||
animalmaterials?
|
||||
bucket?
|
||||
bushes?
|
||||
|
|
|
@ -60,7 +60,9 @@ local function overwrite(name, hunger_change, replace_with_item, poisen, heal)
|
|||
minetest.registered_items[name] = tab
|
||||
end
|
||||
|
||||
overwrite("default:apple", 2)
|
||||
if minetest.get_modpath("default") ~= nil then
|
||||
overwrite("default:apple", 2)
|
||||
end
|
||||
if minetest.get_modpath("farming") ~= nil then
|
||||
overwrite("farming:bread", 4)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user