diff --git a/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUIPageChange.kt b/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUIPageChange.kt index 0a42bab8..87c4d364 100644 --- a/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUIPageChange.kt +++ b/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUIPageChange.kt @@ -1,6 +1,6 @@ package net.axay.kspigot.inventory -import net.axay.kspigot.main.KSpigotMainInstance +import net.axay.kspigot.runnables.task abstract class InventoryGUIPageChangeCalculator { @@ -128,7 +128,7 @@ private inline fun changePageEffect( val ifInverted = fromPage >= toPage var currentOffset = 1 - KSpigotMainInstance.task( + task( sync = true, period = 1, howOften = doFor.toLong()