Skip to content

Commit

Permalink
Long methods need final args
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickMG committed Feb 2, 2025
1 parent fe799cd commit 7e1af89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,8 @@ public boolean shouldDropItemAt(int index) {
}

@Override
public boolean onRightclick(EntityPlayer aPlayer, ForgeDirection side, float aX, float aY, float aZ) {
public boolean onRightclick(final EntityPlayer aPlayer, final ForgeDirection side, final float aX, final float aY,
final float aZ) {
final ForgeDirection wrenchingSide = GTUtility.determineWrenchingSide(side, aX, aY, aZ);
final ForgeDirection effectiveSide = (getCoverIDAtSide(side) == 0) ? wrenchingSide : side;
CoverInfo effectiveSideCover = getCoverInfoAtSide(effectiveSide);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,8 @@ public int getUpgradeCount() {
}

@Override
public boolean onRightclick(EntityPlayer aPlayer, ForgeDirection side, float aX, float aY, float aZ) {
public boolean onRightclick(final EntityPlayer aPlayer, final ForgeDirection side, final float aX, final float aY,
final float aZ) {
final ForgeDirection wrenchingSide = GTUtility.determineWrenchingSide(side, aX, aY, aZ);
final ForgeDirection effectiveSide = (getCoverIDAtSide(side) == 0) ? wrenchingSide : side;
CoverInfo effectiveSideCover = getCoverInfoAtSide(effectiveSide);
Expand Down

0 comments on commit 7e1af89

Please sign in to comment.