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.backend = this;
|
||||||
settings.updateEnabledMods();
|
settings.updateEnabledMods();
|
||||||
} else {
|
} else {
|
||||||
|
if(settings.backend == null) {
|
||||||
|
settings.initAfterGson((ClientProfile) profile, this);
|
||||||
|
}
|
||||||
settings = settings.copy();
|
settings = settings.copy();
|
||||||
//settings.initAfterGson((ClientProfile) profile, this);
|
|
||||||
}
|
}
|
||||||
return settings;
|
return settings;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,6 +100,12 @@ public void removeFlag(Flag flag) {
|
||||||
flags.remove(flag);
|
flags.remove(flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||||
|
@Override
|
||||||
|
public Set<ProfileFeatureAPI.OptionalMod> getAllOptionals() {
|
||||||
|
return (Set) view.all;
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||||
@Override
|
@Override
|
||||||
public Set<ProfileFeatureAPI.OptionalMod> getEnabledOptionals() {
|
public Set<ProfileFeatureAPI.OptionalMod> getEnabledOptionals() {
|
||||||
|
|
|
@ -59,6 +59,7 @@ interface ClientProfileSettings {
|
||||||
boolean hasFlag(Flag flag);
|
boolean hasFlag(Flag flag);
|
||||||
void addFlag(Flag flag);
|
void addFlag(Flag flag);
|
||||||
void removeFlag(Flag flag);
|
void removeFlag(Flag flag);
|
||||||
|
Set<ProfileFeatureAPI.OptionalMod> getAllOptionals();
|
||||||
Set<ProfileFeatureAPI.OptionalMod> getEnabledOptionals();
|
Set<ProfileFeatureAPI.OptionalMod> getEnabledOptionals();
|
||||||
void enableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback);
|
void enableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback);
|
||||||
void disableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback);
|
void disableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback);
|
||||||
|
|
|
@ -64,10 +64,6 @@
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = version.endsWith('SNAPSHOT') ? getProperty('mavenSnapshotRepository') : getProperty('mavenReleaseRepository')
|
url = version.endsWith('SNAPSHOT') ? getProperty('mavenSnapshotRepository') : getProperty('mavenReleaseRepository')
|
||||||
credentials {
|
|
||||||
username getProperty('mavenUsername')
|
|
||||||
password getProperty('mavenPassword')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue