Skip to content

Commit

Permalink
Fix smeltery gui scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Sep 11, 2014
1 parent 9818edc commit 7c4c9b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -80,7 +80,7 @@ public int updateRows (int invRow)
public int scrollTo (float scrollPos)
{
float total = (logic.getSizeInventory() - 24) / 3;
int rowPos = (int) (total * scrollPos);
int rowPos = Math.round(total * scrollPos);
return updateRows(rowPos);
}

Expand Down
Expand Up @@ -74,7 +74,7 @@ public int updateRows (int invRow)
public int scrollTo (float scrollPos)
{
float total = (logic.getSizeInventory() - 24) / 3;
int rowPos = (int) (total * scrollPos);
int rowPos = Math.round(total * scrollPos);
return updateRows(rowPos);
}

Expand Down

0 comments on commit 7c4c9b5

Please sign in to comment.