Config: Fix loader

Java, why can’t I compare sthings with double equals!?
master
BodgeMaster 2022-12-15 09:46:52 +01:00
parent 425ff9ba34
commit 27d19f57f0
1 changed files with 2 additions and 2 deletions

View File

@ -47,11 +47,11 @@ public class Config {
int equalsSign = configData.get(i).indexOf('='); int equalsSign = configData.get(i).indexOf('=');
switch (configData.get(i).substring(0, equalsSign)) { switch (configData.get(i).substring(0, equalsSign)) {
case ("debug"): { case ("debug"): {
debug = configData.get(i).substring(equalsSign + 1) == "true" ? true : false; debug = configData.get(i).substring(equalsSign + 1).equals("true") ? true : false;
break; break;
} }
case ("fixLog4J"): { case ("fixLog4J"): {
fixLog4J = configData.get(i).substring(equalsSign + 1) == "true" ? true : false; fixLog4J = configData.get(i).substring(equalsSign + 1).equals("true") ? true : false;
break; break;
} }
default: { default: {