From 29cef0bc7625a1e7058f86a56093ecf9af323a8e Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Fri, 2 Oct 2020 22:36:06 +0200 Subject: [PATCH] Update InventoryGUIPageChange.kt --- .../axay/kspigot/inventory/InventoryGUIPageChange.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUIPageChange.kt b/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUIPageChange.kt index 4a4ffc42..0f21eb9d 100644 --- a/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUIPageChange.kt +++ b/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUIPageChange.kt @@ -42,11 +42,11 @@ class InventoryGUIPageChanger(private val effect: InventoryGUIPageChangeEffect) changePageEffect(gui.data.plugin, fromPage, toPage, width) { currentOffset, ifInverted -> if (ifInverted) { - gui.loadPage(fromPage, offsetVertically = currentOffset) - gui.loadPage(toPage, offsetVertically = -(width - currentOffset)) + gui.loadPage(fromPage, offsetHorizontally = currentOffset) + gui.loadPage(toPage, offsetHorizontally = -(width - currentOffset)) } else { - gui.loadPage(fromPage, offsetVertically = -currentOffset) - gui.loadPage(toPage, offsetVertically = width - currentOffset) + gui.loadPage(fromPage, offsetHorizontally = -currentOffset) + gui.loadPage(toPage, offsetHorizontally = width - currentOffset) } } @@ -74,9 +74,9 @@ class InventoryGUIPageChanger(private val effect: InventoryGUIPageChangeEffect) changePageEffect(gui.data.plugin, fromPage, toPage, width) { currentOffset, ifInverted -> if (ifInverted) { - gui.loadPage(toPage, offsetVertically = -(width - currentOffset)) + gui.loadPage(toPage, offsetHorizontally = -(width - currentOffset)) } else { - gui.loadPage(toPage, offsetVertically = width - currentOffset) + gui.loadPage(toPage, offsetHorizontally = width - currentOffset) } }