File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
src/main/java/lol/hyper/toolstats/events Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,7 @@ public void onFish(PlayerFishEvent event) {
7474 boolean isOffHand = inventory .getItemInOffHand ().getType () == Material .FISHING_ROD ;
7575 if (isMain ) {
7676 inventory .getItemInMainHand ().setItemMeta (newFishingRod );
77- }
78- if (isOffHand ) {
77+ } else if (isOffHand ) {
7978 inventory .getItemInOffHand ().setItemMeta (newFishingRod );
8079 }
8180 }
Original file line number Diff line number Diff line change @@ -72,8 +72,7 @@ public void onShear(PlayerInteractEntityEvent event) {
7272 boolean isOffHand = inventory .getItemInOffHand ().getType () == Material .SHEARS ;
7373 if (isMain ) {
7474 inventory .getItemInMainHand ().setItemMeta (newItem );
75- }
76- if (isOffHand ) {
75+ } else if (isOffHand ) {
7776 inventory .getItemInOffHand ().setItemMeta (newItem );
7877 }
7978 }
Original file line number Diff line number Diff line change @@ -63,8 +63,7 @@ public void onShoot(EntityShootBowEvent event) {
6363 boolean isOffHand = inventory .getItemInOffHand ().getType () == Material .BOW || inventory .getItemInOffHand ().getType () == Material .CROSSBOW ;
6464 if (isMain ) {
6565 inventory .getItemInMainHand ().setItemMeta (newItem );
66- }
67- if (isOffHand ) {
66+ } else if (isOffHand ) {
6867 inventory .getItemInOffHand ().setItemMeta (newItem );
6968 }
7069 }
You can’t perform that action at this time.
0 commit comments