Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into 1.20.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	gradle.properties
  • Loading branch information
Jerozgen committed Oct 28, 2024
2 parents 51b970c + 74e4c3b commit 78c7213
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ loader_version=0.15.11
fabric_version=0.91.6+1.20.2

# Mod Properties
mod_version=1.7+1.20.2
mod_version=1.7.1+1.20.2
maven_group=jerozgen
archives_base_name=language-reload

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ private static List<Text> addFallbackTranslationsToSearchTooltips(ItemStack inst
if (Config.getInstance() == null) return original;
if (!Config.getInstance().multilingualItemSearch) return original;

var translationStorage = ((ILanguage) Language.getInstance()).languagereload_getTranslationStorage();
var language = Language.getInstance();
if (language == null) return original;

var translationStorage = ((ILanguage) language).languagereload_getTranslationStorage();
if (translationStorage == null) return original;

var result = new ArrayList<>(original);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ List<StringVisitable> getOverriddenTranslations() {
if (!Config.getInstance().multilingualItemSearch) return null;

var language = Language.getInstance();
if (language == null) return null;

var translationStorage = ((ILanguage) language).languagereload_getTranslationStorage();
if (translationStorage == null) return null;

Expand Down

0 comments on commit 78c7213

Please sign in to comment.