refactor gui item creation

This commit is contained in:
alexcrea 2026-07-07 15:22:22 +02:00
parent 23c7b0c753
commit a9af606ae9
Signed by: alexcrea
GPG key ID: E59DF23EE2A2266C
3 changed files with 123 additions and 127 deletions

View file

@ -86,7 +86,7 @@ class EditConfigExecutor : CASubCommand() {
private fun processItem(sender: HumanEntity) {
val item = sender.inventory.itemInMainHand
if(item.isAir) {
if (item.isAir) {
sender.sendMessage("Cannot configure the item in hand")
return
}