1
0
Fork 0

Nerf the knockback enchant a bit to accomodate other stacking knockback modifiers

This commit is contained in:
Eliy21 2023-11-18 05:35:59 +00:00
parent 28e157210f
commit ba65880800
1 changed files with 1 additions and 1 deletions

View File

@ -721,7 +721,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
end end
if hitter and is_player then if hitter and is_player then
local wielditem = hitter:get_wielded_item() local wielditem = hitter:get_wielded_item()
kb = kb + 10 * mcl_enchanting.get_enchantment(wielditem, "knockback") kb = kb + 9 * mcl_enchanting.get_enchantment(wielditem, "knockback")
elseif luaentity and luaentity._knockback then elseif luaentity and luaentity._knockback then
kb = kb + luaentity._knockback kb = kb + luaentity._knockback
end end