fix wrong slot index check
This commit is contained in:
parent
ceda2846c5
commit
72a4d14159
@ -296,7 +296,7 @@ class ItemMonitorBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) :
|
||||
override fun stillValid(p_18946_: Player) = true
|
||||
|
||||
override fun getItem(p_18941_: Int): ItemStack {
|
||||
require(p_18941_ == 1) { "Invalid slot ID: $p_18941_" }
|
||||
require(p_18941_ == 0) { "Invalid slot ID: $p_18941_" }
|
||||
return craftingRecipe?.resultItem?.copy() ?: ItemStack.EMPTY
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user