fix wrong slot index check

This commit is contained in:
DBotThePony 2022-09-05 00:25:05 +07:00
parent ceda2846c5
commit 72a4d14159
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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
}