mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +00:00
removed logging
This commit is contained in:
@@ -117,18 +117,15 @@ public class EntityDamage implements Listener {
|
|||||||
ItemStack heldBow = null;
|
ItemStack heldBow = null;
|
||||||
if (isMainHand) {
|
if (isMainHand) {
|
||||||
heldBow = inventory.getItemInMainHand();
|
heldBow = inventory.getItemInMainHand();
|
||||||
toolStats.logger.info("main");
|
|
||||||
}
|
}
|
||||||
if (isOffHand) {
|
if (isOffHand) {
|
||||||
heldBow = inventory.getItemInOffHand();
|
heldBow = inventory.getItemInOffHand();
|
||||||
toolStats.logger.info("offhand");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the player is hold a bow in both hands
|
// if the player is hold a bow in both hands
|
||||||
// default to main hand since that takes priority
|
// default to main hand since that takes priority
|
||||||
if (isMainHand && isOffHand) {
|
if (isMainHand && isOffHand) {
|
||||||
heldBow = inventory.getItemInMainHand();
|
heldBow = inventory.getItemInMainHand();
|
||||||
toolStats.logger.info("both");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// player swapped
|
// player swapped
|
||||||
|
|||||||
@@ -65,18 +65,15 @@ public class SheepShear implements Listener {
|
|||||||
ItemStack shears = null;
|
ItemStack shears = null;
|
||||||
if (isMainHand) {
|
if (isMainHand) {
|
||||||
shears = inventory.getItemInMainHand();
|
shears = inventory.getItemInMainHand();
|
||||||
toolStats.logger.info("main");
|
|
||||||
}
|
}
|
||||||
if (isOffHand) {
|
if (isOffHand) {
|
||||||
shears = inventory.getItemInOffHand();
|
shears = inventory.getItemInOffHand();
|
||||||
toolStats.logger.info("offhand");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the player is hold fishing rods in both hands
|
// if the player is hold fishing rods in both hands
|
||||||
// default to main hand since that takes priority
|
// default to main hand since that takes priority
|
||||||
if (isMainHand && isOffHand) {
|
if (isMainHand && isOffHand) {
|
||||||
shears = inventory.getItemInMainHand();
|
shears = inventory.getItemInMainHand();
|
||||||
toolStats.logger.info("both");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// player swapped items?
|
// player swapped items?
|
||||||
|
|||||||
Reference in New Issue
Block a user