mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-16 15:38:14 +01:00
Add reminder, make the horse color random per the color length
This commit is contained in:
parent
370e72d9bc
commit
d4774aa3c5
@ -90,6 +90,8 @@ public abstract class Disguise {
|
||||
// Else if its a horse. Set the horse watcher type
|
||||
else if (getWatcher() instanceof HorseWatcher) {
|
||||
try {
|
||||
// Don't mess with this because Varient is something like ZombieHorse and so on.
|
||||
// Not something that a watcher needs to access.
|
||||
Variant horseType = Variant.valueOf(getType().name());
|
||||
getWatcher().setValue(19, (byte) horseType.ordinal());
|
||||
} catch (Exception ex) {
|
||||
|
@ -11,7 +11,7 @@ public class HorseWatcher extends AgeableWatcher {
|
||||
|
||||
public HorseWatcher(Disguise disguise) {
|
||||
super(disguise);
|
||||
setValue(20, new Random().nextInt(7));
|
||||
setColorId(new Random().nextInt(Color.values().length));
|
||||
}
|
||||
|
||||
public Color getColor() {
|
||||
|
Loading…
Reference in New Issue
Block a user