Update PlayerInput.kt

This commit is contained in:
bluefireoly
2020-10-23 02:17:42 +02:00
parent 265d84cd91
commit 73999c8b08

View File

@@ -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