mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-06-28 03:58:07 +03:00
[FIX] Bug fixes
This commit is contained in:
parent
463d381180
commit
31f919021c
4 changed files with 10 additions and 5 deletions
|
@ -188,8 +188,10 @@ public ClientProfileSettings makeClientProfileSettings(ProfileFeatureAPI.ClientP
|
|||
settings.backend = this;
|
||||
settings.updateEnabledMods();
|
||||
} else {
|
||||
if(settings.backend == null) {
|
||||
settings.initAfterGson((ClientProfile) profile, this);
|
||||
}
|
||||
settings = settings.copy();
|
||||
//settings.initAfterGson((ClientProfile) profile, this);
|
||||
}
|
||||
return settings;
|
||||
}
|
||||
|
|
|
@ -100,6 +100,12 @@ public void removeFlag(Flag flag) {
|
|||
flags.remove(flag);
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||
@Override
|
||||
public Set<ProfileFeatureAPI.OptionalMod> getAllOptionals() {
|
||||
return (Set) view.all;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||
@Override
|
||||
public Set<ProfileFeatureAPI.OptionalMod> getEnabledOptionals() {
|
||||
|
|
|
@ -59,6 +59,7 @@ interface ClientProfileSettings {
|
|||
boolean hasFlag(Flag flag);
|
||||
void addFlag(Flag flag);
|
||||
void removeFlag(Flag flag);
|
||||
Set<ProfileFeatureAPI.OptionalMod> getAllOptionals();
|
||||
Set<ProfileFeatureAPI.OptionalMod> getEnabledOptionals();
|
||||
void enableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback);
|
||||
void disableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback);
|
||||
|
|
|
@ -64,10 +64,6 @@
|
|||
repositories {
|
||||
maven {
|
||||
url = version.endsWith('SNAPSHOT') ? getProperty('mavenSnapshotRepository') : getProperty('mavenReleaseRepository')
|
||||
credentials {
|
||||
username getProperty('mavenUsername')
|
||||
password getProperty('mavenPassword')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue