Skip to content

Commit

Permalink
Fix enum name conversions in non-english environments (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Aug 4, 2023
1 parent d7a252c commit 40cf616
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Locale;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Supplier;
Expand Down Expand Up @@ -99,7 +100,7 @@ public Matter next() {
public static final int EPIC_THRESHOLD = 16;
Matter(int fluidEfficiency, @Nullable Supplier<Item> existingItem, ILangEntry collectorLang) {
boolean isFinal = name().equals("FINAL"); // we can't access the FINAL member because we're in the constructor
this.name = name().toLowerCase();
this.name = name().toLowerCase(Locale.US);
this.hasItem = existingItem == null && ordinal() != 0;
this.level = ordinal() + 1;
this.collectorOutputBase = getValue(BASE_COLLECTOR_OUTPUT);
Expand Down

0 comments on commit 40cf616

Please sign in to comment.