mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 11:06:14 +01:00
Make mounts spawn as adults - sometimes ;)
This commit is contained in:
parent
2d4b6f20f2
commit
f633b77a9d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user