Skip to content

Commit a44b441

Browse files
committed
mod icon by mo2men
1 parent f1f7d1d commit a44b441

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed

src/main/kotlin/me/imtoggle/itemcounter/command/ModCommand.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package me.imtoggle.itemcounter.command
22

33
import cc.polyfrost.oneconfig.utils.commands.annotations.Command
4+
import cc.polyfrost.oneconfig.utils.commands.annotations.Main
45
import cc.polyfrost.oneconfig.utils.commands.annotations.SubCommand
56
import cc.polyfrost.oneconfig.utils.dsl.mc
67
import me.imtoggle.itemcounter.ItemCounter
@@ -12,6 +13,11 @@ import net.minecraft.item.Item
1213
@Command(value = ItemCounter.MODID)
1314
class ModCommand {
1415

16+
@Main
17+
fun main() {
18+
ModConfig.openGui()
19+
}
20+
1521
@SubCommand
1622
fun add() {
1723
val stack = mc.thePlayer.heldItem

src/main/kotlin/me/imtoggle/itemcounter/config/ModConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import net.minecraft.item.Item
1313
import net.minecraft.item.ItemStack
1414
import java.lang.reflect.Field
1515

16-
object ModConfig : Config(Mod(ItemCounter.NAME, ModType.UTIL_QOL, "/assets/tempIcon.png"), "${ItemCounter.MODID}.json") {
16+
object ModConfig : Config(Mod(ItemCounter.NAME, ModType.HUD, "/assets/ItemCounterDarkTransparent.svg"), "${ItemCounter.MODID}.json") {
1717

1818
@CustomOption
1919
var entries = ArrayList<ItemEntry>()
5.35 KB
Loading
Lines changed: 4 additions & 0 deletions
Loading
-18.4 KB
Binary file not shown.

src/main/resources/mcmod.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"ImToggle"
1212
],
1313
"credits": "",
14-
"logoFile": "",
14+
"logoFile": "ItemCounterLight.png",
1515
"screenshots": [],
1616
"dependencies": []
1717
}

0 commit comments

Comments
 (0)