Skip to content

Commit

Permalink
fix settings getting reset
Browse files Browse the repository at this point in the history
  • Loading branch information
camnwalter committed Sep 4, 2023
1 parent 967e149 commit 46b6e3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/com/squagward/screenshots/Screenshots.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.squagward.screenshots

import com.squagward.screenshots.compat.MacOSCompat
import com.squagward.screenshots.config.Config
import com.squagward.screenshots.hud.ScreenshotHud
import net.fabricmc.api.ClientModInitializer
import net.minecraft.client.texture.NativeImage
Expand All @@ -23,6 +24,7 @@ object Screenshots : ClientModInitializer {
LOGGER.info("Initialized Screenshots!")

ScreenshotHud.init()
Config.INSTANCE.load()
}

fun copyToClipboard(image: NativeImage) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.squagward.screenshots.entry
package com.squagward.screenshots.config

import com.squagward.screenshots.config.Config
import com.terraformersmc.modmenu.api.ConfigScreenFactory
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"adapter": "kotlin",
"value": "com.squagward.screenshots.Screenshots"
}],
"modmenu": ["com.squagward.screenshots.entry.ModMenuEntry"]
"modmenu": ["com.squagward.screenshots.config.ModMenuEntry"]
},
"mixins": [
"screenshots.mixins.json"
Expand Down

0 comments on commit 46b6e3a

Please sign in to comment.