fixed yet another usage of def.steps

This commit is contained in:
theFox6 2019-05-29 17:02:43 +02:00
parent fc61c23799
commit 14e6291b18
Signed by: theFox6
GPG Key ID: C884FE8D3BCE128A
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ local damage_steps = 0
local function handle_damage(damage,player, downfall_origin)
if not damage then return end
damage_steps = damage_steps +1
if damage_steps < damage.steps then return end
if damage_steps < damage.time then return end
damage_steps = 0
if do_raycasts then
-- this check should be more accurate