mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-23 04:57:58 +01:00
Fixed snouts not following the snuzzles config option
This commit is contained in:
parent
e58ed56a7e
commit
cd84f64d37
1 changed files with 5 additions and 2 deletions
|
@ -5,6 +5,7 @@ import com.minelittlepony.render.plane.PlaneRenderer;
|
||||||
|
|
||||||
import static com.minelittlepony.model.PonyModelConstants.*;
|
import static com.minelittlepony.model.PonyModelConstants.*;
|
||||||
|
|
||||||
|
import com.minelittlepony.MineLittlePony;
|
||||||
import com.minelittlepony.model.AbstractPonyModel;
|
import com.minelittlepony.model.AbstractPonyModel;
|
||||||
|
|
||||||
public class PonySnout {
|
public class PonySnout {
|
||||||
|
@ -50,7 +51,9 @@ public class PonySnout {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGender(PonyGender gender) {
|
public void setGender(PonyGender gender) {
|
||||||
mare.isHidden = !isHidden && gender == PonyGender.STALLION;
|
boolean show = !isHidden && MineLittlePony.getConfig().snuzzles;
|
||||||
stallion.isHidden = !isHidden && !mare.isHidden;
|
|
||||||
|
mare.isHidden = !show || gender == PonyGender.STALLION;
|
||||||
|
stallion.isHidden = !show || gender == PonyGender.MARE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue