aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-04 23:23:07 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-04 23:23:07 +0200
commit644291019d9033eba9358791b4f771258d4f1163 (patch)
treed0840490e27815b460561cec37b34142cc972988 /src/main/java/at/hannibal2/skyhanni/data
parenta0d813a371016bd1428bb7753edff453b6ef4eb4 (diff)
downloadskyhanni-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.kt4
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