Skip to content

Commit

Permalink
Assert player inventory is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeberrex authored Sep 24, 2023
1 parent 2f099c5 commit 755d5e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ class InventoryListener : Listener {
fun onObserverKitApply(event: ObserverKitApplyEvent) {
val player = event.player

val inventory = player.inventory
val inventory = player.inventory ?: return

// Remove extra staff items from observer inventory
inventory.setItem(1, null)
inventory.setItem(4, null)
inventory.setItem(6, null)
}
}
}

0 comments on commit 755d5e1

Please sign in to comment.