This commit is contained in:
Auxilor
2021-08-12 00:24:35 +01:00
parent b652dbad2d
commit 46415268b7
5 changed files with 49 additions and 9 deletions

View File

@@ -17,6 +17,6 @@ public class MenuUtils {
public Pair<Integer, Integer> convertSlotToRowColumn(final int slot) {
int row = Math.floorDiv(slot, 9);
int column = slot - row * 9;
return new Pair<>(row, column);
return new Pair<>(row + 1, column + 1);
}
}