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