min
This commit is contained in:
parent
abebcc72e8
commit
36734f8dbc
3
init.lua
3
init.lua
@ -27,6 +27,7 @@ local monoids = minetest.get_modpath("player_monoids")
|
||||
local pova_mod = minetest.get_modpath("pova")
|
||||
local armor_mod = minetest.get_modpath("3d_armor")
|
||||
local timer = 0
|
||||
local math_min = math.min
|
||||
|
||||
-- main function run for each player
|
||||
|
||||
@ -282,7 +283,7 @@ local function punchy(
|
||||
end
|
||||
-- END tool damage
|
||||
|
||||
local kb = math.min(32, damage * 2)
|
||||
local kb = math_min(32, damage * 2)
|
||||
|
||||
--print ("--- knockback", player:get_player_name(), damage, kb)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user