From 18b58d584f9fa117e4551f2008b8a532bdf5824d Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 1 Oct 2022 22:31:37 +0100 Subject: [PATCH] Fixes to GUI --- build.gradle.kts | 2 +- .../kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index b4a1e36e..d6818d5f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -118,7 +118,7 @@ allprojects { exclude(group = "com.github.cryptomorin", module = "XSeries") exclude(group = "net.wesjd", module = "anvilgui") exclude(group = "org.slf4j", module = "slf4j-api") - exclude(group = "com.google", module = "gson") + exclude(group = "com.google.code.gson", module = "gson") } configurations.testImplementation { diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt index 889af610..c2181cf6 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt @@ -118,6 +118,7 @@ class GUIListener(private val plugin: EcoPlugin) : Listener { val rendered = player.renderedInventory ?: return if (rendered.menu.allowsChangingHeldItem()) { + player.renderActiveMenu() return } @@ -150,6 +151,7 @@ class GUIListener(private val plugin: EcoPlugin) : Listener { val rendered = player.renderedInventory ?: return if (rendered.menu.allowsChangingHeldItem()) { + player.renderActiveMenu() return }