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;
|
||||
if (isMainHand) {
|
||||
heldBow = inventory.getItemInMainHand();
|
||||
toolStats.logger.info("main");
|
||||
}
|
||||
if (isOffHand) {
|
||||
heldBow = inventory.getItemInOffHand();
|
||||
toolStats.logger.info("offhand");
|
||||
}
|
||||
|
||||
// if the player is hold a bow in both hands
|
||||
// default to main hand since that takes priority
|
||||
if (isMainHand && isOffHand) {
|
||||
heldBow = inventory.getItemInMainHand();
|
||||
toolStats.logger.info("both");
|
||||
}
|
||||
|
||||
// player swapped
|
||||
|
||||
@@ -65,18 +65,15 @@ public class SheepShear implements Listener {
|
||||
ItemStack shears = null;
|
||||
if (isMainHand) {
|
||||
shears = inventory.getItemInMainHand();
|
||||
toolStats.logger.info("main");
|
||||
}
|
||||
if (isOffHand) {
|
||||
shears = inventory.getItemInOffHand();
|
||||
toolStats.logger.info("offhand");
|
||||
}
|
||||
|
||||
// if the player is hold fishing rods in both hands
|
||||
// default to main hand since that takes priority
|
||||
if (isMainHand && isOffHand) {
|
||||
shears = inventory.getItemInMainHand();
|
||||
toolStats.logger.info("both");
|
||||
}
|
||||
|
||||
// player swapped items?
|
||||
|
||||
Reference in New Issue
Block a user