mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-21 05:21:22 +01:00
Fixed use of ItemMeta in lookup
This commit is contained in:
parent
722680aae0
commit
77ca1551c3
@ -2,6 +2,7 @@ package com.willfp.ecoenchants.target
|
||||
|
||||
import com.github.benmanes.caffeine.cache.Caffeine
|
||||
import com.willfp.eco.core.fast.fast
|
||||
import com.willfp.eco.core.items.HashedItem
|
||||
import com.willfp.ecoenchants.enchants.EcoEnchant
|
||||
import com.willfp.ecoenchants.enchants.EcoEnchantLevel
|
||||
import com.willfp.ecoenchants.target.EnchantLookup.getEnchantLevel
|
||||
@ -27,7 +28,11 @@ data class ItemInSlot internal constructor(
|
||||
data class ItemInNumericSlot internal constructor(
|
||||
val item: ItemStack,
|
||||
val slot: Int
|
||||
)
|
||||
) {
|
||||
override fun hashCode(): Int {
|
||||
return HashedItem.of(item).hash + (slot shl 31)
|
||||
}
|
||||
}
|
||||
|
||||
private data class HeldEnchant(
|
||||
val enchant: EcoEnchant,
|
||||
|
Loading…
Reference in New Issue
Block a user