Fix bad plural in tooltip if >=2 or food points

This commit is contained in:
Wuzzy 2023-01-24 17:50:52 +01:00
parent 9ed95dba6a
commit ab383b2d5e

View File

@ -668,10 +668,10 @@ if minetest.get_modpath("tt") ~= nil then
if def and is_food then if def and is_food then
msg = S("Food item") msg = S("Food item")
if def._rp_hunger_food then if def._rp_hunger_food then
msg = msg .."\n" .. S("+@1 food points", def._rp_hunger_food) msg = msg .."\n" .. S("Food points: +@1", def._rp_hunger_food)
end end
if HUNGER_DEBUG and def._rp_hunger_sat then if HUNGER_DEBUG and def._rp_hunger_sat then
msg = msg .. "\n" .. S("+@1 saturation points", def._rp_hunger_sat) msg = msg .. "\n" .. S("Saturation points: +@1", def._rp_hunger_sat)
end end
end end
return msg return msg