1
0
Fork 0

Merge branch 'master' into mineclone5

This commit is contained in:
Lizzy Fleckenstein 2021-04-29 10:58:22 +02:00
commit eae71fdf55
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ mcl_damage.register_modifier(function(obj, damage, reason)
local thorns_damage = thorns_damage_regular + thorns_damage_irregular
if thorns_damage > 0 and reason.type ~= "thorns" and reason.source ~= obj then
mcl_util.deal_damage(reason.source, thorns_damage)
mcl_util.deal_damage(reason.source, thorns_damage, {type = "thorns", direct = obj})
local thorns_item = thorns_pieces[math.random(#thorns_pieces)]
mcl_util.use_item_durability(thorns_item.itemstack, 2)