mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 23:48:00 +01:00
Stop skin updates when the pony level hasn't updated
This commit is contained in:
parent
f54e54da40
commit
fd113f1b90
1 changed files with 7 additions and 3 deletions
|
@ -10,7 +10,6 @@ import com.voxelmodpack.hdskins.HDSkinManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Storage container for MineLP client settings.
|
* Storage container for MineLP client settings.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@ExposableOptions(filename = "minelittlepony", strategy = ConfigStrategy.Unversioned)
|
@ExposableOptions(filename = "minelittlepony", strategy = ConfigStrategy.Unversioned)
|
||||||
public class PonyConfig extends SensibleConfig implements Exposable {
|
public class PonyConfig extends SensibleConfig implements Exposable {
|
||||||
|
@ -43,6 +42,7 @@ public class PonyConfig extends SensibleConfig implements Exposable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current PonyLevel. That is the level of ponies you would like to see.
|
* Gets the current PonyLevel. That is the level of ponies you would like to see.
|
||||||
|
*
|
||||||
* @param ignorePony true to ignore whatever value the setting has.
|
* @param ignorePony true to ignore whatever value the setting has.
|
||||||
*/
|
*/
|
||||||
public PonyLevel getEffectivePonyLevel(boolean ignorePony) {
|
public PonyLevel getEffectivePonyLevel(boolean ignorePony) {
|
||||||
|
@ -61,12 +61,16 @@ public class PonyConfig extends SensibleConfig implements Exposable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the pony level. Want MOAR PONEHS? Well here you go.
|
* Sets the pony level. Want MOAR PONEHS? Well here you go.
|
||||||
|
*
|
||||||
* @param ponylevel
|
* @param ponylevel
|
||||||
*/
|
*/
|
||||||
public void setPonyLevel(PonyLevel ponylevel) {
|
public void setPonyLevel(PonyLevel ponylevel) {
|
||||||
|
// only trigger reloads when the value actually changes
|
||||||
|
if (ponylevel != this.ponylevel) {
|
||||||
this.ponylevel = ponylevel;
|
this.ponylevel = ponylevel;
|
||||||
HDSkinManager.INSTANCE.reloadSkins();
|
HDSkinManager.INSTANCE.reloadSkins();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public float getGlobalScaleFactor() {
|
public float getGlobalScaleFactor() {
|
||||||
return showscale ? 1F : 1.3F;
|
return showscale ? 1F : 1.3F;
|
||||||
|
|
Loading…
Reference in a new issue