Implemented JOCKEY and CHUNK_GEN SpawnReasons.

Dieser Commit ist enthalten in:
EvilSeph 2012-02-10 00:48:45 -05:00
Ursprung 0170ae9523
Commit c38fcb360a

Datei anzeigen

@ -196,7 +196,7 @@ public final class SpawnerCreature {
entityskeleton.setPositionRotation((double) f, (double) f1, (double) f2, entityliving.yaw, 0.0F); entityskeleton.setPositionRotation((double) f, (double) f1, (double) f2, entityliving.yaw, 0.0F);
// CraftBukkit - added a reason for spawning this creature // CraftBukkit - added a reason for spawning this creature
world.addEntity(entityskeleton, SpawnReason.NATURAL); world.addEntity(entityskeleton, SpawnReason.JOCKEY);
entityskeleton.mount(entityliving); entityskeleton.mount(entityliving);
} else if (entityliving instanceof EntitySheep) { } else if (entityliving instanceof EntitySheep) {
((EntitySheep) entityliving).setColor(EntitySheep.a(world.random)); ((EntitySheep) entityliving).setColor(EntitySheep.a(world.random));
@ -237,7 +237,7 @@ public final class SpawnerCreature {
entityliving.setPositionRotation((double) f, (double) f1, (double) f2, random.nextFloat() * 360.0F, 0.0F); entityliving.setPositionRotation((double) f, (double) f1, (double) f2, random.nextFloat() * 360.0F, 0.0F);
// CraftBukkit - added a reason for spawning this creature // CraftBukkit - added a reason for spawning this creature
world.addEntity(entityliving, SpawnReason.NATURAL); world.addEntity(entityliving, SpawnReason.CHUNK_GEN);
a(entityliving, world, f, f1, f2); a(entityliving, world, f, f1, f2);
flag = true; flag = true;
} }