Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Oct 13, 2024
1 parent fa8eb1c commit ae571a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hu/openig/model/Planet.java
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ public void takeover(Player newOwner) {
if (owner == world.player) {
autoBuild = world.env.config().autoBuildForNewPlanets;
}

allocation = ResourceAllocationStrategy.DEFAULT;
tax = TaxLevel.MODERATE;

Expand Down
4 changes: 3 additions & 1 deletion src/hu/openig/screen/items/StatusbarScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,9 @@ 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, new Locale(commons.language())));
@SuppressWarnings("deprecation")
Locale locale = new Locale(commons.language());
month.text("" + world().time.getDisplayName(GregorianCalendar.MONTH, GregorianCalendar.LONG, locale));
day.text("" + world().time.get(GregorianCalendar.DATE));
time.text(String.format("%02d:%02d",
world().time.get(GregorianCalendar.HOUR_OF_DAY),
Expand Down

0 comments on commit ae571a3

Please sign in to comment.