From 6fc895d8e5daaa6996bfa67f28a13294bfa5eea2 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 10 Sep 2023 12:59:06 +0200 Subject: Fixed bazaar Price Website icon duplicate in Inventory --- .../at/hannibal2/skyhanni/features/bazaar/BazaarOpenPriceWebsite.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/at') 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) -- cgit