Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into 1.20.6
Browse files Browse the repository at this point in the history
# Conflicts:
#	gradle.properties
  • Loading branch information
Jerozgen committed Oct 28, 2024
2 parents 4682e78 + 74e4c3b commit 127a0bb
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.98.0+1.20.6

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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 127a0bb

Please sign in to comment.