From 73999c8b08847893ffbd8d0e2ebfef2976f530fd Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Fri, 23 Oct 2020 02:17:42 +0200 Subject: [PATCH] Update PlayerInput.kt --- src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt b/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt index ab5d310b..8d934716 100644 --- a/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt +++ b/src/main/kotlin/net/axay/kspigot/chat/input/PlayerInput.kt @@ -91,7 +91,7 @@ internal class PlayerInputAnvilInv( AnvilGUI.Builder().plugin(KSpigotMainInstance) .onClose { onReceive(null) } .onComplete { _, text -> - if (text.isNotEmpty()) { + return@onComplete if (text.isNotEmpty()) { onReceive(text) AnvilGUI.Response.close() } else