Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Nov 8, 2022
1 parent 63f1628 commit 2bae1b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eco-api/src/main/kotlin/com/willfp/ecomponent/CaptiveItem.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ class CaptiveItem {

/** Get the item for a player. */
operator fun get(player: Player): ItemStack? {
require(isBound) { "Must be bound to a slot!" }
if (!isBound) {
return null
}

return menu.getCaptiveItem(player, row, column)
}
Expand Down

0 comments on commit 2bae1b7

Please sign in to comment.