metadata.getRace().getEfectiveRace(MineLittlePony.getConfig().getEffectivePonyLevel(ignorePony));

This commit is contained in:
Sollace 2018-05-01 19:33:17 +02:00
parent 9f429415b5
commit 2325bf162d
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ public class PonyConfig 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 getPonyLevel(boolean ignorePony) { public PonyLevel getEffectivePonyLevel(boolean ignorePony) {
return ignorePony ? PonyLevel.BOTH : getPonyLevel(); return ignorePony ? PonyLevel.BOTH : getPonyLevel();
} }

View file

@ -108,7 +108,7 @@ public class Pony {
} }
public PonyRace getRace(boolean ignorePony) { public PonyRace getRace(boolean ignorePony) {
return metadata.getRace().getEffectiveRace(MineLittlePony.getConfig().getPonyLevel(ignorePony)); return metadata.getRace().getEffectiveRace(MineLittlePony.getConfig().getEffectivePonyLevel(ignorePony));
} }
public ResourceLocation getTexture() { public ResourceLocation getTexture() {