Update PlayerInput.kt
This commit is contained in:
@@ -91,7 +91,7 @@ internal class PlayerInputAnvilInv(
|
|||||||
AnvilGUI.Builder().plugin(KSpigotMainInstance)
|
AnvilGUI.Builder().plugin(KSpigotMainInstance)
|
||||||
.onClose { onReceive(null) }
|
.onClose { onReceive(null) }
|
||||||
.onComplete { _, text ->
|
.onComplete { _, text ->
|
||||||
if (text.isNotEmpty()) {
|
return@onComplete if (text.isNotEmpty()) {
|
||||||
onReceive(text)
|
onReceive(text)
|
||||||
AnvilGUI.Response.close()
|
AnvilGUI.Response.close()
|
||||||
} else
|
} else
|
||||||
|
Reference in New Issue
Block a user