Fixed snouts not following the snuzzles config option

This commit is contained in:
Sollace 2018-06-02 19:13:52 +02:00
parent e58ed56a7e
commit cd84f64d37

View file

@ -5,6 +5,7 @@ import com.minelittlepony.render.plane.PlaneRenderer;
import static com.minelittlepony.model.PonyModelConstants.*;
import com.minelittlepony.MineLittlePony;
import com.minelittlepony.model.AbstractPonyModel;
public class PonySnout {
@ -50,7 +51,9 @@ public class PonySnout {
}
public void setGender(PonyGender gender) {
mare.isHidden = !isHidden && gender == PonyGender.STALLION;
stallion.isHidden = !isHidden && !mare.isHidden;
boolean show = !isHidden && MineLittlePony.getConfig().snuzzles;
mare.isHidden = !show || gender == PonyGender.STALLION;
stallion.isHidden = !show || gender == PonyGender.MARE;
}
}