From 71dc7d1574ca6d4e380b55fdc174d80f16d808a7 Mon Sep 17 00:00:00 2001 From: SamB440 Date: Fri, 19 Mar 2021 18:00:52 +0000 Subject: [PATCH] It compiles! --- .../java/net/islandearth/rpgregions/gui/DiscoveryGUI.java | 8 ++++---- .../java/net/islandearth/rpgregions/gui/EditorGUI.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rpgregions/src/main/java/net/islandearth/rpgregions/gui/DiscoveryGUI.java b/rpgregions/src/main/java/net/islandearth/rpgregions/gui/DiscoveryGUI.java index f89e599..0041f06 100644 --- a/rpgregions/src/main/java/net/islandearth/rpgregions/gui/DiscoveryGUI.java +++ b/rpgregions/src/main/java/net/islandearth/rpgregions/gui/DiscoveryGUI.java @@ -1,7 +1,7 @@ package net.islandearth.rpgregions.gui; -import com.github.stefvanschie.inventoryframework.Gui; -import com.github.stefvanschie.inventoryframework.GuiItem; +import com.github.stefvanschie.inventoryframework.gui.GuiItem; +import com.github.stefvanschie.inventoryframework.gui.type.ChestGui; import com.github.stefvanschie.inventoryframework.pane.OutlinePane; import com.github.stefvanschie.inventoryframework.pane.PaginatedPane; import com.github.stefvanschie.inventoryframework.pane.StaticPane; @@ -29,11 +29,11 @@ import java.util.List; public class DiscoveryGUI extends RPGRegionsGUI { - private final Gui gui; + private final ChestGui gui; public DiscoveryGUI(RPGRegions plugin, Player player) { super(plugin, player); - this.gui = new Gui(plugin, plugin.getConfig().getInt("settings.server.gui.general.rows"), Translations.REGIONS.get(player)); + this.gui = new ChestGui(plugin.getConfig().getInt("settings.server.gui.general.rows"), Translations.REGIONS.get(player)); gui.setOnGlobalClick(click -> click.setCancelled(true)); // I wish there was a cleaner way to do this :( int backX = plugin.getConfig().getInt("settings.server.gui.back.posX"); diff --git a/rpgregions/src/main/java/net/islandearth/rpgregions/gui/EditorGUI.java b/rpgregions/src/main/java/net/islandearth/rpgregions/gui/EditorGUI.java index 87efcf4..77f9427 100644 --- a/rpgregions/src/main/java/net/islandearth/rpgregions/gui/EditorGUI.java +++ b/rpgregions/src/main/java/net/islandearth/rpgregions/gui/EditorGUI.java @@ -1,7 +1,7 @@ package net.islandearth.rpgregions.gui; -import com.github.stefvanschie.inventoryframework.Gui; -import com.github.stefvanschie.inventoryframework.GuiItem; +import com.github.stefvanschie.inventoryframework.gui.GuiItem; +import com.github.stefvanschie.inventoryframework.gui.type.ChestGui; import com.github.stefvanschie.inventoryframework.pane.OutlinePane; import com.github.stefvanschie.inventoryframework.pane.PaginatedPane; import com.github.stefvanschie.inventoryframework.pane.StaticPane; @@ -31,11 +31,11 @@ import java.util.List; public class EditorGUI extends RPGRegionsGUI { - private final Gui gui; + private final ChestGui gui; public EditorGUI(RPGRegions plugin, Player player, ConfiguredRegion region) { super(plugin, player); - this.gui = new Gui(plugin, 6, region.getCustomName()); + this.gui = new ChestGui(6, region.getCustomName()); gui.setOnGlobalClick(click -> click.setCancelled(true)); ClassEditor classEditor = new ClassEditor(region);