Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Do not load items with no components encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed May 4, 2022
1 parent 4255666 commit dbb09d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/mineinabyss/looty/LootyFactory.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object LootyFactory {

/** Gets or creates a [GearyEntity] based on a given item and the context it is in. */
fun PlayerInventorySlotContext.loadItem(context: ProcessingItemContext): GearyEntity? = with(context) {
// if (!hasComponentsEncoded) return null
if (!hasComponentsEncoded) return null
val gearyPlayer = holder.toGeary()
val decoded = meta.persistentDataContainer.decodeComponents()

Expand Down

0 comments on commit dbb09d1

Please sign in to comment.