forked from Fascinated/Bat
cleanup dev mode
This commit is contained in:
@ -27,7 +27,7 @@ public class ProfileHolder {
|
||||
profiles = new HashMap<>();
|
||||
}
|
||||
|
||||
Profile profile = profiles.values().stream().filter(p -> p.getClass().equals(clazz)).findFirst().orElse(null);
|
||||
Profile profile = profiles.values().stream().filter(clazz::isInstance).findFirst().orElse(null);
|
||||
if (profile == null) {
|
||||
try {
|
||||
profile = clazz.newInstance();
|
||||
|
Reference in New Issue
Block a user