We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1dedf12 + 3eafebe commit 4803040Copy full SHA for 4803040
1 file changed
src/main/java/dev/dfonline/codeclient/dev/menu/DevInventory/DevInventoryGroup.java
@@ -227,7 +227,7 @@ public boolean isTopHalf() {
227
}
228
229
public int getPlace() {
230
- return this.index - (isTopHalf() ? 0 : TOP_HALF - 1);
+ return this.index;
231
232
233
public int getColumn() {
@@ -244,7 +244,7 @@ public int getDisplayX(int originX) {
244
245
public int getDisplayY(int originY, int menuHeight) {
246
int multiplier = TAB_HEIGHT * (isTopHalf() ? -1 : 1);
247
- int y = (getRow() * multiplier) + originY + (isTopHalf() ? (TAB_HEIGHT * -1 - 4) : menuHeight);
+ int y = originY + (isTopHalf() ? (TAB_HEIGHT * -1 - 4) + (getRow() * multiplier) : menuHeight);
248
return y;
249
250
0 commit comments