From 8aed914c7bb4dd576ea3a78a703590d4cfab87f3 Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Mon, 12 Oct 2020 17:27:11 +0200 Subject: [PATCH] Update InventoryGUIPageChange.kt --- .../net/axay/kspigot/inventory/InventoryGUIPageChange.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()