diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-10 12:59:06 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-10 12:59:06 +0200 |
commit | 6fc895d8e5daaa6996bfa67f28a13294bfa5eea2 (patch) | |
tree | 801d0f678bfd100e37cf6352f0ddfdb38a1f5d1d /src | |
parent | e7cbec5684307ede7e1547b94d040850538cd55d (diff) | |
download | skyhanni-6fc895d8e5daaa6996bfa67f28a13294bfa5eea2.tar.gz skyhanni-6fc895d8e5daaa6996bfa67f28a13294bfa5eea2.tar.bz2 skyhanni-6fc895d8e5daaa6996bfa67f28a13294bfa5eea2.zip |
Fixed bazaar Price Website icon duplicate in Inventory
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOpenPriceWebsite.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOpenPriceWebsite.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOpenPriceWebsite.kt index 92f5ec78f..2fc37e12c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOpenPriceWebsite.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOpenPriceWebsite.kt @@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.utils.OSUtils import io.github.moulberry.notenoughupdates.events.ReplaceItemEvent import io.github.moulberry.notenoughupdates.events.SlotClickEvent import io.github.moulberry.notenoughupdates.util.Utils +import net.minecraft.entity.player.InventoryPlayer import net.minecraftforge.fml.common.eventhandler.EventPriority import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -28,6 +29,7 @@ class BazaarOpenPriceWebsite { fun replaceItem(event: ReplaceItemEvent) { if (!isEnabled()) return BazaarApi.currentlyOpenedProduct ?: return + if (event.inventory is InventoryPlayer) return if (event.slotNumber == 22) { event.replaceWith(item) |