mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 22:44:23 +00:00
Fix smeltery gui scrolling
This commit is contained in:
1 parent
9818edc0a8
commit
7c4c9b55c0
2 files changed
+2
-2
No files matched your search
@@ -80,7 +80,7 @@ public class SmelteryContainer extends ActiveContainer
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ public class SmelteryContainerOld extends ActiveContainer
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user