Update kb.lua

master
Minetest-j45 2021-03-18 16:33:06 +00:00 committed by GitHub
parent 2d58b718c3
commit 395fcaa1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

1
kb.lua
View File

@ -1,4 +1,5 @@
minetest.calculate_knockback = function(player, hitter, time_from_last_punch, tool_capabilities, dir, distance, damage)
if not time_from_last_punch then return end
if time_from_last_punch >= 1.5 then
return 1.5
elseif time_from_last_punch <= 1 and time_from_last_punch >= 0.5 then