aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-11-12 05:33:25 +0100
committerLinnea Gräf <nea@nea.moe>2023-11-12 05:33:25 +0100
commit2c84c8255a4531374327daa35942ffd214dba334 (patch)
tree8a2d2ed585bfd20c80e4ccfb78519add02d4fd91 /src
parente580023cce085c84361a00a5b6115fceac325259 (diff)
downloadfirmament-inventorybuttons.tar.gz
firmament-inventorybuttons.tar.bz2
firmament-inventorybuttons.zip
Actually save inventory buttonsinventorybuttons
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/inventory/buttons/InventoryButtonEditor.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/inventory/buttons/InventoryButtonEditor.kt b/src/main/kotlin/moe/nea/firmament/features/inventory/buttons/InventoryButtonEditor.kt
index 61dbdc6..6eb2cea 100644
--- a/src/main/kotlin/moe/nea/firmament/features/inventory/buttons/InventoryButtonEditor.kt
+++ b/src/main/kotlin/moe/nea/firmament/features/inventory/buttons/InventoryButtonEditor.kt
@@ -7,11 +7,8 @@ import me.shedaniel.math.Point
import me.shedaniel.math.Rectangle
import org.lwjgl.glfw.GLFW
import net.minecraft.client.gui.DrawContext
-import moe.nea.firmament.repo.ItemCache.asItemStack
-import moe.nea.firmament.repo.RepoManager
import moe.nea.firmament.util.FragmentGuiScreen
import moe.nea.firmament.util.MoulConfigUtils
-import moe.nea.firmament.util.SkyblockId
class InventoryButtonEditor(
val lastGuiRect: Rectangle,
@@ -40,6 +37,7 @@ class InventoryButtonEditor(
override fun close() {
InventoryButtons.DConfig.data.buttons = buttons
+ InventoryButtons.DConfig.markDirty()
super.close()
}