Bugfix: Player-Inv-Click

Bugfix: #14
This commit is contained in:
JaTiTV 2022-12-22 02:04:32 +01:00
parent cd366cbe14
commit b83766744d
2 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<groupId>net.t2code</groupId>
<artifactId>CommandGUI_V2</artifactId>
<version>2.8.13</version>
<version>2.8.14-DEV</version>
<packaging>jar</packaging>
<name>CommandGUI</name>

View File

@ -48,6 +48,9 @@ public class GUIListener implements Listener {
if (player.getOpenInventory().getTitle().equals(T2Creplace.replace(prefix, GUICode + gui.guiName))
|| (Main.PaPi && player.getOpenInventory().getTitle().equals(T2Creplace.replace(prefix, player, GUICode + gui.guiName)))) {
e.setCancelled(true);
if (player.getOpenInventory().getTopInventory() != e.getClickedInventory()) {
continue;
}
for (Slot slot : gui.slots) {
execute(e, slot, player, gui);
}