diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-04 23:23:07 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-04 23:23:07 +0200 |
commit | 644291019d9033eba9358791b4f771258d4f1163 (patch) | |
tree | d0840490e27815b460561cec37b34142cc972988 /src/main/java/at/hannibal2/skyhanni/data | |
parent | a0d813a371016bd1428bb7753edff453b6ef4eb4 (diff) | |
download | skyhanni-644291019d9033eba9358791b4f771258d4f1163.tar.gz skyhanni-644291019d9033eba9358791b4f771258d4f1163.tar.bz2 skyhanni-644291019d9033eba9358791b4f771258d4f1163.zip |
Properly sending inventory close event when closing the gui position editor
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/OtherInventoryData.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/OtherInventoryData.kt b/src/main/java/at/hannibal2/skyhanni/data/OtherInventoryData.kt index 3a018e33a..f1cebf640 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/OtherInventoryData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/OtherInventoryData.kt @@ -8,7 +8,7 @@ import net.minecraft.network.play.server.S2FPacketSetSlot import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.gameevent.TickEvent -class OtherInventoryData { +object OtherInventoryData { private var currentInventory: Inventory? = null private var acceptItems = false private var lateEvent: LateInventoryOpenEvent? = null @@ -18,7 +18,7 @@ class OtherInventoryData { close() } - private fun close() { + fun close() { currentInventory?.let { InventoryCloseEvent(it).postAndCatch() currentInventory = null |