aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/Firmament.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-07-05 22:17:02 +0200
committerLinnea Gräf <nea@nea.moe>2024-07-05 22:17:02 +0200
commit3d792dbef7c7e0f186e29f2e3999f99c2c14f5d7 (patch)
treeb383c2c584a96b93c46d1dae3efcd3c6571e3d05 /src/main/kotlin/moe/nea/firmament/Firmament.kt
parent5ee4b8d925eb12e068038a1fd2e1f35cdd8ef87e (diff)
downloadFirmament-3d792dbef7c7e0f186e29f2e3999f99c2c14f5d7.tar.gz
Firmament-3d792dbef7c7e0f186e29f2e3999f99c2c14f5d7.tar.bz2
Firmament-3d792dbef7c7e0f186e29f2e3999f99c2c14f5d7.zip
Port to 1.21
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/Firmament.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/Firmament.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/Firmament.kt b/src/main/kotlin/moe/nea/firmament/Firmament.kt
index 630950a..9a04db1 100644
--- a/src/main/kotlin/moe/nea/firmament/Firmament.kt
+++ b/src/main/kotlin/moe/nea/firmament/Firmament.kt
@@ -145,8 +145,8 @@ object Firmament {
globalJob.cancel()
})
registerFirmamentEvents()
- ItemTooltipCallback.EVENT.register { a, b, c, d ->
- ItemTooltipEvent.publish(ItemTooltipEvent(a, b, c, d))
+ ItemTooltipCallback.EVENT.register { stack, context, type, lines ->
+ ItemTooltipEvent.publish(ItemTooltipEvent(stack, context, type, lines))
}
ScreenEvents.AFTER_INIT.register(ScreenEvents.AfterInit { client, screen, scaledWidth, scaledHeight ->
ScreenEvents.afterRender(screen)
@@ -157,7 +157,7 @@ object Firmament {
}
- fun identifier(path: String) = Identifier(MOD_ID, path)
+ fun identifier(path: String) = Identifier.of(MOD_ID, path)
inline fun <reified T : Any> tryDecodeJsonFromStream(inputStream: InputStream): Result<T> {
return runCatching {
json.decodeFromStream<T>(inputStream)