diff --git a/pom.xml b/pom.xml
index a2812bc..15f5163 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
me.paradoxpixel
themepark
- 1.2.4
+ 1.2.5
diff --git a/src/main/java/me/paradoxpixel/themepark/gui/GUIListener.java b/src/main/java/me/paradoxpixel/themepark/gui/GUIListener.java
index db3b3c4..2855bc5 100644
--- a/src/main/java/me/paradoxpixel/themepark/gui/GUIListener.java
+++ b/src/main/java/me/paradoxpixel/themepark/gui/GUIListener.java
@@ -2,13 +2,14 @@ package me.paradoxpixel.themepark.gui;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
+import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.*;
import org.bukkit.inventory.Inventory;
public class GUIListener implements Listener {
- @EventHandler
+ @EventHandler(priority = EventPriority.HIGHEST)
public void onClick(InventoryClickEvent e) {
if(e.getClickedInventory() == null)
return;
@@ -22,10 +23,10 @@ public class GUIListener implements Listener {
ClickType type = e.getClick();
GUI gui = (GUI) inventory.getHolder();
- e.setCancelled(gui.execute(player, slot, type));
+ gui.execute(player, slot, type);
}
- @EventHandler
+ @EventHandler(priority = EventPriority.HIGHEST)
public void onMove(InventoryClickEvent e) {
if(e.getInventory() == null)
return;
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 869a5a3..1fb8185 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,5 +1,5 @@
name: ThemePark
-version: 1.2.4
+version: 1.2.5
main: me.paradoxpixel.themepark.ThemeParkPlugin
author: ParadoxPixel
softdepend: [PlaceholderAPI]