mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-08 13:44:59 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e3e9f0825 | ||
|
|
11ee83773e | ||
|
|
9f5da738dd |
2
pom.xml
2
pom.xml
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<groupId>lol.hyper</groupId>
|
<groupId>lol.hyper</groupId>
|
||||||
<artifactId>toolstats</artifactId>
|
<artifactId>toolstats</artifactId>
|
||||||
<version>1.9.1</version>
|
<version>1.9.2</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>ToolStats</name>
|
<name>ToolStats</name>
|
||||||
|
|||||||
@@ -74,8 +74,7 @@ public class PlayerFish implements Listener {
|
|||||||
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.FISHING_ROD;
|
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.FISHING_ROD;
|
||||||
if (isMain) {
|
if (isMain) {
|
||||||
inventory.getItemInMainHand().setItemMeta(newFishingRod);
|
inventory.getItemInMainHand().setItemMeta(newFishingRod);
|
||||||
}
|
} else if (isOffHand) {
|
||||||
if (isOffHand) {
|
|
||||||
inventory.getItemInOffHand().setItemMeta(newFishingRod);
|
inventory.getItemInOffHand().setItemMeta(newFishingRod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,8 +72,7 @@ public class SheepShear implements Listener {
|
|||||||
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.SHEARS;
|
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.SHEARS;
|
||||||
if (isMain) {
|
if (isMain) {
|
||||||
inventory.getItemInMainHand().setItemMeta(newItem);
|
inventory.getItemInMainHand().setItemMeta(newItem);
|
||||||
}
|
} else if (isOffHand) {
|
||||||
if (isOffHand) {
|
|
||||||
inventory.getItemInOffHand().setItemMeta(newItem);
|
inventory.getItemInOffHand().setItemMeta(newItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,8 +63,7 @@ public class ShootBow implements Listener {
|
|||||||
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.BOW || inventory.getItemInOffHand().getType() == Material.CROSSBOW;
|
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.BOW || inventory.getItemInOffHand().getType() == Material.CROSSBOW;
|
||||||
if (isMain) {
|
if (isMain) {
|
||||||
inventory.getItemInMainHand().setItemMeta(newItem);
|
inventory.getItemInMainHand().setItemMeta(newItem);
|
||||||
}
|
} else if (isOffHand) {
|
||||||
if (isOffHand) {
|
|
||||||
inventory.getItemInOffHand().setItemMeta(newItem);
|
inventory.getItemInOffHand().setItemMeta(newItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -203,4 +203,4 @@ number-formats:
|
|||||||
# This has no use currently, but can be used for future features for dupe detection.
|
# This has no use currently, but can be used for future features for dupe detection.
|
||||||
generate-hash-for-items: false
|
generate-hash-for-items: false
|
||||||
|
|
||||||
config-version: 9
|
config-version: 10
|
||||||
Reference in New Issue
Block a user