Skip to content

Commit

Permalink
Fix Locale.of (Java 19+) crash
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Sep 30, 2024
1 parent d20f4d1 commit 54fc206
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Binary file added install/open-ig-0.95.256.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/hu/openig/model/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/
public class Configuration {
/** The version string. */
public static final String VERSION = "0.95.255";
public static final String VERSION = "0.95.256";
/** Annotation for indicating load/save a field. */
@Retention(RetentionPolicy.RUNTIME)
@interface LoadSave { }
Expand Down
2 changes: 1 addition & 1 deletion src/hu/openig/screen/items/StatusbarScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public void update() {
time.bounds(top.x + 331, top.y + 3, 42, 14);

year.text("" + world().time.get(GregorianCalendar.YEAR));
month.text("" + world().time.getDisplayName(GregorianCalendar.MONTH, GregorianCalendar.LONG, Locale.of(commons.language())));
month.text("" + world().time.getDisplayName(GregorianCalendar.MONTH, GregorianCalendar.LONG, new Locale(commons.language())));
day.text("" + world().time.get(GregorianCalendar.DATE));
time.text(String.format("%02d:%02d",
world().time.get(GregorianCalendar.HOUR_OF_DAY),
Expand Down
7 changes: 5 additions & 2 deletions update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<desc lang='en'>The launcher&#39;s main file</desc>
</file>
</module>
<module id='Game' version='0.95.255'>
<module id='Game' version='0.95.256'>
<general url='https://github.com/akarnokd/open-ig'>
<desc lang='hu'>
Az Open Imperium Galactica játék.
Expand All @@ -42,6 +42,9 @@
<desc lang='es'>Bugfixes</desc>
</notes>
<release-details>
<entry version='0.95.256' date='2024-09-30'>
<item category='System'>Fix a Java 8 incompatibility issue.</item>
</entry>
<entry version='0.95.255' date='2024-09-30'>
<item category='System'>Fix a release issue.</item>
</entry>
Expand Down Expand Up @@ -331,7 +334,7 @@
<item category='AI'>Fixed AI unable to build a power plant if the missing energy was above the capacity of available power plant types.</item>
</entry>
</release-details>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-0.95.255.jar' sha1='F502BD0369DFB92B60B3E196BA57CE93D8C169C0'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-0.95.256.jar' sha1='6814CD933275C6C1DE875A0D3EB0D1A9846328AC'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-upgrade-20240930a2.zip' sha1='BCB4BE3242EF22AD050903FEDC9A48F515C95416'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/install/open-ig-images-20240930a.zip' sha1='09EA802D35E9A124B1A1761CBBB8D8F8C8D06E77'/>
<file url='https://github.com/akarnokd/open-ig/raw/master/open-ig-splash.png' sha1='52b83dbe118575c7dd3dd6c8c41d0446c32dee45'/>
Expand Down

0 comments on commit 54fc206

Please sign in to comment.