From d708dca108dcbfe3d67dfe90c27de9cdb41184a6 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 7 Dec 2024 00:50:33 +0100 Subject: feat: Add SQLITE database entry logging --- src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt') diff --git a/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt b/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt index 65580fa..43f2cb7 100644 --- a/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt +++ b/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt @@ -22,7 +22,7 @@ class ItemIdProvider { MinecraftForge.EVENT_BUS.post(BeforeGuiAction(event.gui)) } - private val knownNames = mutableMapOf() + private val knownNames = mutableMapOf() @SubscribeEvent fun saveInventoryIds(event: BeforeGuiAction) { @@ -45,7 +45,7 @@ class ItemIdProvider { } } - fun findForName(name: String): String? { + fun findForName(name: String): ItemId? { return knownNames[name] } -- cgit