mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-08 03:20:21 +01:00
Replace deprecated method
This commit is contained in:
parent
f8052a0108
commit
38050da61d
|
@ -157,7 +157,7 @@ minetest.register_on_punchplayer(function(player, hitter, time,
|
|||
if hitter:is_player() then
|
||||
death_message = string.format(messages.whacking[math.random(1,#messages.whacking)], player_name, hitter:get_player_name(), player_name, hitter:get_player_name())
|
||||
else
|
||||
local entity_name = monsters[hitter:get_entity_name()] or "monster"
|
||||
local entity_name = monsters[hitter:get_luaentity().name] or "monster"
|
||||
death_message = string.format(messages.monsters_whacking[math.random(1, #messages.monsters_whacking)], player_name, entity_name, player_name, entity_name)
|
||||
end
|
||||
broadcast_death(death_message)
|
||||
|
|
Loading…
Reference in New Issue
Block a user