Add reminder, make the horse color random per the color length

This commit is contained in:
Andrew 2013-11-18 04:39:33 +13:00
parent 370e72d9bc
commit d4774aa3c5
2 changed files with 3 additions and 1 deletions

View File

@ -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) {

View File

@ -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() {