Update player_interaction.lua

master
oilboi 2020-06-26 13:17:39 -04:00
parent 0271ecd9e2
commit 42990d63b0
1 changed files with 3 additions and 1 deletions

View File

@ -230,8 +230,10 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch,
punch_diff = (minetest.get_us_time()/1000000)-temp_pool
hurt = 0
hurt = tool_capabilities.damage_groups.damage
if not hurt then
hurt = 0
end
hp = player:get_hp()
if punch_diff >= 0.5 and hp > 0 then