Try a different fix for knight damage boost

This commit is contained in:
LoneWolfHT 2020-11-08 11:27:27 -08:00
parent 0ef68bb0f9
commit 52e2e4251f

View file

@ -14,9 +14,9 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch,
end
if php - damage > 0 then
player:set_hp(php - damage)
player:punch(hitter, 1, {damage_groups = {fleshy = time_from_last_punch*2, nopunch = 1}}, dir)
return true
minetest.after(0, function()
player:punch(hitter, 1, {damage_groups = {fleshy = time_from_last_punch*2, nopunch = 1}}, dir)
end)
end
end
end)