From 6f7426b104e9965b17248659e7a3f4c7818fa810 Mon Sep 17 00:00:00 2001 From: Jerozgen Date: Mon, 28 Oct 2024 03:09:42 +0300 Subject: [PATCH] Fix build failure --- .../languagereload/mixin/TranslationStorageMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/jerozgen/languagereload/mixin/TranslationStorageMixin.java b/src/main/java/jerozgen/languagereload/mixin/TranslationStorageMixin.java index 6a0ceac..3442409 100644 --- a/src/main/java/jerozgen/languagereload/mixin/TranslationStorageMixin.java +++ b/src/main/java/jerozgen/languagereload/mixin/TranslationStorageMixin.java @@ -59,12 +59,12 @@ public String languagereload_get(String key) { @Override public @Nullable String languagereload_getTargetLanguage() { - return targetLanguageByThread.get(Thread.currentThread().threadId()); + return targetLanguageByThread.get(Thread.currentThread().getId()); } @Override public void languagereload_setTargetLanguage(@Nullable String value) { - var threadId = Thread.currentThread().threadId(); + var threadId = Thread.currentThread().getId(); if (value == null) targetLanguageByThread.remove(threadId); else targetLanguageByThread.put(threadId, value); }