mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
fix nether fruit
test d’un fix pour résoudre le problème avec le nether fruit
This commit is contained in:
parent
c72fb2b1b9
commit
e919962953
@ -368,7 +368,7 @@ minetest.register_node("nether:apple", {
|
||||
end
|
||||
local amount = math.random(4, 6)
|
||||
local p_hunger = tonumber(hud.hunger[user:get_player_name()])
|
||||
if not p_hunger then return end
|
||||
--if not p_hunger then return end -- test si résoud notre problème avec le nether fruit
|
||||
p_hunger = p_hunger+3
|
||||
if p_hunger > 30 then p_hunger = 30 end
|
||||
hud.hunger[user:get_player_name()] = p_hunger
|
||||
|
Loading…
Reference in New Issue
Block a user