From 3093350303f1aeb88bc99013dc8d4bc564248831 Mon Sep 17 00:00:00 2001 From: DaniFoldi Date: Mon, 10 May 2021 09:57:04 +0200 Subject: [PATCH] minor improvements --- build.gradle | 2 +- src/main/java/com/danifoldi/bungeegui/main/GuiHandler.java | 4 ++++ src/main/resources/config.yml | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 2a2fb24..f3eadc4 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'com.danifoldi' -version '1.0.4' +version '1.0.5' sourceCompatibility = JavaVersion.VERSION_11 repositories { diff --git a/src/main/java/com/danifoldi/bungeegui/main/GuiHandler.java b/src/main/java/com/danifoldi/bungeegui/main/GuiHandler.java index 52643df..219b70c 100644 --- a/src/main/java/com/danifoldi/bungeegui/main/GuiHandler.java +++ b/src/main/java/com/danifoldi/bungeegui/main/GuiHandler.java @@ -202,6 +202,10 @@ void close(ProxiedPlayer player) { } GuiGrid getOpenGui(UUID uuid) { + if (!openGuis.containsKey(uuid)) { + return null; + } + return menus.get(openGuis.get(uuid).getFirst()); } String getGuiTarget(UUID uuid) { diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 17bfbb7..1978e1f 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -124,9 +124,6 @@ guis: size: 45 title: '&6BungeeGui Authors' items: - '10': - type: cobblestone - enchanted: true '0': type: nether_star '8':