mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 11:17:30 +01:00
Fix comment on player invul code
This commit is contained in:
parent
ca556c052f
commit
8e2c5249f5
@ -741,7 +741,7 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch,
|
|||||||
-- damage invulnerability
|
-- damage invulnerability
|
||||||
if hitter then
|
if hitter then
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
-- check for invulnerability time for 0.5 second
|
-- check for invulnerability time (0.5 second)
|
||||||
local invul = player:get_meta():get_int("mcl_damage:invulnerable")
|
local invul = player:get_meta():get_int("mcl_damage:invulnerable")
|
||||||
if invul > 0 then
|
if invul > 0 then
|
||||||
damage = damage - mcl_playerplus_internal[name].last_damage
|
damage = damage - mcl_playerplus_internal[name].last_damage
|
||||||
|
Loading…
Reference in New Issue
Block a user