mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-18 16:20:38 +01:00
Merge branch 'hunger_split'
This commit is contained in:
commit
0b035abc2e
@ -91,7 +91,7 @@ minetest.register_on_respawnplayer(function(player)
|
||||
end)
|
||||
|
||||
minetest.register_on_item_eat(function(hp_change, replace_with_item, itemstack, user, pointed_thing)
|
||||
if user:get_hp() >= 20 then return itemstack end
|
||||
if user:get_hp() >= 20 then return end
|
||||
local pos = user:getpos()
|
||||
minetest.sound_play("health_gain", {pos = pos, gain = 0.4})
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user