fix the lang configs
This commit is contained in:
parent
ae0af14b96
commit
79734ba177
@ -98,7 +98,7 @@ public class LangConfig {
|
|||||||
JsonObject obj = ConfigHandler.GSON.fromJson(reader, JsonObject.class);
|
JsonObject obj = ConfigHandler.GSON.fromJson(reader, JsonObject.class);
|
||||||
reader.close();
|
reader.close();
|
||||||
for (Field field : this.getClass().getDeclaredFields()) {
|
for (Field field : this.getClass().getDeclaredFields()) {
|
||||||
if (field.getDeclaringClass().equals(String.class) && obj.has(field.getName())) {
|
if (field.getType().equals(String.class) && obj.has(field.getName())) {
|
||||||
field.set(this, obj.get(field.getName()).getAsString());
|
field.set(this, obj.get(field.getName()).getAsString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user