Make mounts spawn as adults - sometimes ;)

This commit is contained in:
garbagemule 2014-05-03 23:16:49 +02:00
parent 2d4b6f20f2
commit f633b77a9d

View File

@ -848,6 +848,11 @@ public class ArenaImpl implements Arena
// Spawn the horse, set its variant, tame it, etc.
Horse horse = (Horse) world.spawnEntity(p.getLocation(), EntityType.HORSE);
if (MobArena.random.nextInt(20) == 0) {
horse.setBaby();
} else {
horse.setAdult();
}
horse.setVariant(variant);
horse.setTamed(true);
horse.setOwner(p);