Skip to content

Commit

Permalink
fix: 아이템 불러오는 과정 발생하던 IOException 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
cccgh5 committed Jan 11, 2025
1 parent f66e40a commit e65f47f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ fun Array<ItemStack?>.toExposedBlob(): ExposedBlob {
}

fun ExposedBlob.toItemStack(): ItemStack {
return this.bytes.toItemStack()
return this.inputStream.use {
toItemStack()
}
}

fun ExposedBlob.toItemArray(): Array<ItemStack> {
return this.bytes.toItemArray()
return this.inputStream.use { stream ->
stream.readAllBytes().toItemArray()
}
}

fun <ID : Comparable<ID>, E : Entity<ID>> EntityClass<ID, E>.findForUpdate(
Expand Down

0 comments on commit e65f47f

Please sign in to comment.