Skip to content

Commit

Permalink
Fixed 'IModifyItemMeleeRange' not being called.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirsario committed Jun 30, 2022
1 parent a7cd2eb commit df6f150
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Common/Melee/ItemMeleeAttackAiming.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public static float GetAttackRange(Item item, Player player, Rectangle? itemRect

float range = 0f;
var playerCenter = player.Center;
var hitboxCenter = itemHitbox.Center;

for (int i = 0; i < 4; i++) {
var corner = i switch {
Expand All @@ -88,7 +87,7 @@ public static float GetAttackRange(Item item, Player player, Rectangle? itemRect
range = Math.Max(range, distanceToCorner);
}

//IModifyItemMeleeRange.Invoke(item, player, ref range);
IModifyItemMeleeRange.Invoke(item, player, ref range);

return range;
}
Expand Down

0 comments on commit df6f150

Please sign in to comment.