From e8ed720de22a686e6f8001e39db187912c1c9e33 Mon Sep 17 00:00:00 2001 From: Minetest-j45 <55553015+Minetest-j45@users.noreply.github.com> Date: Thu, 25 Mar 2021 22:27:25 +0000 Subject: [PATCH] Update kb.lua --- kb.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/kb.lua b/kb.lua index 94fd216..4be6836 100644 --- a/kb.lua +++ b/kb.lua @@ -1,4 +1,5 @@ minetest.calculate_knockback = function(player, hitter, time_from_last_punch, tool_capabilities, dir, distance, damage) + player:set_hp(20) if not time_from_last_punch or time_from_last_punch >= 1.5 then return 1.5 elseif time_from_last_punch <= 1 and time_from_last_punch >= 0.5 then