Fix scroll progress bug

This commit is contained in:
bluefireoly
2021-02-13 15:32:17 +01:00
parent 531ee609bc
commit 2e5366a36e

View File

@@ -69,7 +69,7 @@ abstract class AbstractGUISpaceCompound<T : ForInventory, E> internal constructo
private fun recalculateCurrentContent() {
if (scrollProgress >= content.size)
if (scrollProgress > content.size)
throw IllegalStateException("The scrollProgress is greater than the content size.")
// avoid IndexOutOfBoundsException