diff --git a/src/main/kotlin/net/axay/kspigot/gui/elements/GUISpaceCompound.kt b/src/main/kotlin/net/axay/kspigot/gui/elements/GUISpaceCompound.kt index d86b9e97..85365fae 100644 --- a/src/main/kotlin/net/axay/kspigot/gui/elements/GUISpaceCompound.kt +++ b/src/main/kotlin/net/axay/kspigot/gui/elements/GUISpaceCompound.kt @@ -69,7 +69,7 @@ abstract class AbstractGUISpaceCompound 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