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); }