forked from mtcontrib/diet
Compare commits
1 Commits
nalc-1.2.0
...
1dfd4a0c66
Author | SHA1 | Date | |
---|---|---|---|
1dfd4a0c66 |
2
init.lua
2
init.lua
@ -93,7 +93,7 @@ function diet.item_eat(max, replace_with_item, poisen, heal)
|
|||||||
|
|
||||||
-- Increase health
|
-- Increase health
|
||||||
if minetest.get_modpath("hbhunger") and hbhunger then
|
if minetest.get_modpath("hbhunger") and hbhunger then
|
||||||
minetest.sound_play({name = "hbhunger_eat_generic", gain = 1}, {pos=user:getpos(), max_hear_distance = 16})
|
minetest.sound_play({name = "hbhunger_eat_generic", gain = 1}, {pos=user:get_pos(), max_hear_distance = 16})
|
||||||
|
|
||||||
-- saturation
|
-- saturation
|
||||||
local h = tonumber(hbhunger.hunger[name])
|
local h = tonumber(hbhunger.hunger[name])
|
||||||
|
Reference in New Issue
Block a user