Update 1.6.1

master
Noodlemire 2021-09-02 18:51:24 -05:00
parent 5a8e3bef32
commit f3d63289d4
2 changed files with 6 additions and 1 deletions

View File

@ -304,3 +304,5 @@ Alpha 1.6.1:
Crash caused by Dew Vial
Crash caused by loading the game when a player is already inflicted with a buff of some kind
Buff-related particles being offset weirdly when attached to players
Crash caused by trying to start the game with damage disabled.

View File

@ -34,7 +34,10 @@ local function register_food(name, def)
end
minetest.register_craftitem("voxeldungeon:"..name, def)
hbhunger.register_food("voxeldungeon:"..name, def.foodval)
if minetest.settings:get_bool("enable_damage") then
hbhunger.register_food("voxeldungeon:"..name, def.foodval)
end
end
register_food("ration", {description = "Ration of Food\n \nNothing fancy here: dried meat, some biscuits - things like that.", foodval = 8})