mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 17:41:06 +01:00
Fix #1161
This commit is contained in:
parent
a86d3fa22c
commit
3d0f5a4de5
1 changed files with 1 additions and 2 deletions
|
@ -215,8 +215,7 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch,
|
|||
if wielditem then
|
||||
local fire_aspect_level = mcl_enchanting.get_enchantment(wielditem, "fire_aspect")
|
||||
if fire_aspect_level > 0 then
|
||||
local damage = fire_aspect_level * 4 - 1
|
||||
mcl_burning.set_on_fire(player, 4, 1, 4 / damage, hitter:get_player_name())
|
||||
mcl_burning.set_on_fire(player, fire_aspect_level * 4, 1, 1, hitter:get_player_name())
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue