diff options
author | Roman / Linnea Gräf <nea@nea.moe> | 2023-04-20 21:59:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 21:59:19 +0200 |
commit | f3b199cf8abd93e6b8b761af8e7b28bed5fe7592 (patch) | |
tree | 28924c0b9d4b0fa006906f989f4dc545b11a7606 /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | 9699af8fb7e394b124a282ded8a7cf185d592e8e (diff) | |
download | skyhanni-f3b199cf8abd93e6b8b761af8e7b28bed5fe7592.tar.gz skyhanni-f3b199cf8abd93e6b8b761af8e7b28bed5fe7592.tar.bz2 skyhanni-f3b199cf8abd93e6b8b761af8e7b28bed5fe7592.zip |
Mark packet event as async and fix threading issue in garden visitor … (#51)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 17adc4f2c..c339a5425 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -20,6 +20,7 @@ import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems import at.hannibal2.skyhanni.utils.StringUtils.removeColor import at.hannibal2.skyhanni.utils.renderables.Renderable import io.github.moulberry.notenoughupdates.events.SlotClickEvent +import io.github.moulberry.notenoughupdates.util.MinecraftExecutor import io.github.moulberry.notenoughupdates.util.SBInfo import net.minecraft.client.Minecraft import net.minecraft.client.gui.inventory.GuiEditSign @@ -203,7 +204,9 @@ class GardenVisitorFeatures { @SubscribeEvent fun onOwnInventoryItemUpdate(event: OwnInventorItemUpdateEvent) { if (GardenAPI.onBarnPlot) { - update() + MinecraftExecutor.OnThread.execute { + update() + } } } |