mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-12 19:10:26 +01:00
fix local variable
This commit is contained in:
parent
7662998887
commit
0bf73198fa
@ -154,6 +154,7 @@ minetest.register_on_punchplayer(function(player, hitter, time,
|
|||||||
tool_caps, dir, damage)
|
tool_caps, dir, damage)
|
||||||
if player:get_hp() - damage <= 0 and not whacked[player:get_player_name()] then
|
if player:get_hp() - damage <= 0 and not whacked[player:get_player_name()] then
|
||||||
local player_name = player:get_player_name()
|
local player_name = player:get_player_name()
|
||||||
|
local death_message
|
||||||
if hitter:is_player() then
|
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())
|
death_message = string.format(messages.whacking[math.random(1,#messages.whacking)], player_name, hitter:get_player_name(), player_name, hitter:get_player_name())
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user