Skip to content

Commit

Permalink
Fixed Server Crash
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoriusT committed Jun 19, 2023
1 parent a43727b commit cba1f93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Nothing (I tend to only add finished Stuff to the Changelog).


6.16.01: (Not released yet)
[FIXED] a Serverside Only Crash because the Lang File does not exist on Servers. Happened while I made Books localizable, lol. But it's fixed now.
[FIXED] Electric Wires and cables did not connect properly to other Mods Blocks, especially IC2, but only when Funky Locomotion was NOT installed.


Expand Down
1 change: 1 addition & 0 deletions src/main/java/gregapi/lang/LanguageHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public static String get(String aKey, String aDefault) {
}

public static String langfile(String aKey, String aEnglish) {
if (sLangFile == null) return aEnglish;
Property tProperty = sLangFile.get("LanguageFile", aKey, aEnglish);
if (tProperty.wasRead() && mWritingEnabled) sLangFile.save();
return tProperty.getString();
Expand Down

0 comments on commit cba1f93

Please sign in to comment.