1.3_beta-2
A bug was fixed, if you use confirm via the gui and let another gui open via the alias, then this direnk was closed again.
This commit is contained in:
parent
020f33da07
commit
987370586a
2
pom.xml
2
pom.xml
@ -7,7 +7,7 @@
|
|||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>Alias</artifactId>
|
<artifactId>Alias</artifactId>
|
||||||
|
|
||||||
<version>1.3_beta-1</version>
|
<version>1.3_beta-2</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>T2C-Alias</name>
|
<name>T2C-Alias</name>
|
||||||
|
@ -20,16 +20,16 @@ public class GuiListener implements Listener {
|
|||||||
if (e.getClickedInventory() != e.getWhoClicked().getOpenInventory().getTopInventory()) return;
|
if (e.getClickedInventory() != e.getWhoClicked().getOpenInventory().getTopInventory()) return;
|
||||||
switch (e.getSlot()) {
|
switch (e.getSlot()) {
|
||||||
case 12:
|
case 12:
|
||||||
|
Cache.openPlayers.remove(player.getUniqueId());
|
||||||
|
player.closeInventory();
|
||||||
ExecuteAlias.storage(player, true);
|
ExecuteAlias.storage(player, true);
|
||||||
break;
|
break;
|
||||||
case 14:
|
case 14:
|
||||||
|
Cache.openPlayers.remove(player.getUniqueId());
|
||||||
|
player.closeInventory();
|
||||||
ExecuteAlias.storage(player, false);
|
ExecuteAlias.storage(player, false);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
Cache.openPlayers.remove(player.getUniqueId());
|
|
||||||
player.closeInventory();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
Loading…
Reference in New Issue
Block a user