Fix smeltery gui scrolling

This commit is contained in:
Bernhard Bonigl committed 2014-09-11 17:24:30 +02:00
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);
}