1
0
mirror of https://github.com/kami-blue/client synced 2025-03-11 08:47:35 +00:00

Add in overrides to getValueAsString/setValueFromString so string settings make sense (#448)

This was probably arguably an oversight on my part last time I went near this code.
Sorry!

Co-authored-by: 20kdc <asdd2808@gmail.com>
This commit is contained in:
Bella Who 2020-02-17 03:35:50 +00:00 committed by GitHub
parent a0b5ab9628
commit 8ee42e0ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,4 +22,13 @@ public class StringSetting extends Setting<String> {
return converter;
}
@Override
public String getValueAsString() {
return getValue();
}
@Override
public void setValueFromString(String s) {
setValue(s);
}
}