From 2c84c8255a4531374327daa35942ffd214dba334 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 12 Nov 2023 05:33:25 +0100 Subject: Actually save inventory buttons --- .../nea/firmament/features/inventory/buttons/InventoryButtonEditor.kt | 4 +--- 1 file changed, 1 insertion(+), 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() } -- cgit