mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Fix lava/fire/magmablock death message not transl.
This commit is contained in:
parent
f5cd9e3b98
commit
3f85e1c0da
1 changed files with 9 additions and 1 deletions
|
@ -140,7 +140,15 @@ minetest.register_on_dieplayer(function(player, reason)
|
|||
else
|
||||
field_msg = field
|
||||
end
|
||||
msg = S(field_msg, name)
|
||||
local textdomain
|
||||
if highest_damage_def.mod_origin then
|
||||
textdomain = highest_damage_def.mod_origin
|
||||
else
|
||||
textdomain = "mcl_death_messages"
|
||||
end
|
||||
-- We assume the textdomain of the death message in the node definition
|
||||
-- equals the modname.
|
||||
msg = minetest.translate(textdomain, field_msg, name)
|
||||
end
|
||||
elseif reason.type == "drown" then
|
||||
msg = dmsg("drown", name)
|
||||
|
|
Loading…
Reference in a new issue