Skip to content

Commit e310f1c

Browse files
committed
fix #98
1 parent 3d850ef commit e310f1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<groupId>lol.hyper</groupId>
2525
<artifactId>toolstats</artifactId>
26-
<version>1.9.3</version>
26+
<version>1.9.4</version>
2727
<packaging>jar</packaging>
2828

2929
<name>ToolStats</name>

src/main/java/lol/hyper/toolstats/events/EntityDamage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private void updateBowDamage(PlayerInventory playerInventory, double damage) {
187187

188188
boolean isMain = playerInventory.getItemInMainHand().getType() == Material.BOW || playerInventory.getItemInMainHand().getType() == Material.CROSSBOW;
189189
boolean isOffHand = playerInventory.getItemInOffHand().getType() == Material.BOW || playerInventory.getItemInOffHand().getType() == Material.CROSSBOW;
190-
ItemMeta newBowDamage = toolStats.itemLore.updateWeaponDamage(playerInventory.getItemInMainHand(), damage, false);
190+
ItemMeta newBowDamage = toolStats.itemLore.updateWeaponDamage(heldBow, damage, false);
191191
//toolStats.logger.info(newBowDamage.toString());
192192

193193
// player is shooting another player

0 commit comments

Comments
 (0)