mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +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 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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue