aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-26 16:14:32 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-26 16:14:32 +0100
commit1ba5a48080de0c1ecbc55885a4c5711d36a06968 (patch)
treec2ac8ed1c385e7b0b881fb6e8eff0a9035605975 /src
parentea2a886070f6105e4600f604ffd685e78f8ce101 (diff)
downloadskyhanni-1ba5a48080de0c1ecbc55885a4c5711d36a06968.tar.gz
skyhanni-1ba5a48080de0c1ecbc55885a4c5711d36a06968.tar.bz2
skyhanni-1ba5a48080de0c1ecbc55885a4c5711d36a06968.zip
Fixed duplicate tracker items when taking from storage/chests.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/OwnInventoryData.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/OwnInventoryData.kt b/src/main/java/at/hannibal2/skyhanni/data/OwnInventoryData.kt
index 2bc9cf3c3..18a8d2841 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/OwnInventoryData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/OwnInventoryData.kt
@@ -18,6 +18,7 @@ import at.hannibal2.skyhanni.utils.SimpleTimeMark
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import net.minecraft.client.Minecraft
+import net.minecraft.network.play.client.C0EPacketClickWindow
import net.minecraft.network.play.server.S0DPacketCollectItem
import net.minecraft.network.play.server.S2FPacketSetSlot
import net.minecraftforge.fml.common.eventhandler.EventPriority
@@ -54,6 +55,16 @@ class OwnInventoryData {
}
@SubscribeEvent
+ fun onClickEntity(event: PacketEvent.SendEvent) {
+ if (!LorenzUtils.inSkyBlock) return
+ val packet = event.packet
+
+ if (packet is C0EPacketClickWindow) {
+ dirty = true
+ }
+ }
+
+ @SubscribeEvent
fun onTick(event: LorenzTickEvent) {
if (!LorenzUtils.inSkyBlock) return
if (itemAmounts.isEmpty()) {