diff options
author | EvilSeph <evilseph@gmail.com> | 2012-02-10 00:48:45 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-10 07:17:41 -0500 |
commit | c38fcb360a818c57d835b7942dd581e8471b0c26 (patch) | |
tree | 248e1b51f7f9498f7d37d698575df2d555ea7d22 /src | |
parent | 0170ae952319bac4593fa1ab16db2ca1d17eab1b (diff) | |
download | craftbukkit-c38fcb360a818c57d835b7942dd581e8471b0c26.tar craftbukkit-c38fcb360a818c57d835b7942dd581e8471b0c26.tar.gz craftbukkit-c38fcb360a818c57d835b7942dd581e8471b0c26.tar.lz craftbukkit-c38fcb360a818c57d835b7942dd581e8471b0c26.tar.xz craftbukkit-c38fcb360a818c57d835b7942dd581e8471b0c26.zip |
Implemented JOCKEY and CHUNK_GEN SpawnReasons.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/SpawnerCreature.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java index c779688e..be92404f 100644 --- a/src/main/java/net/minecraft/server/SpawnerCreature.java +++ b/src/main/java/net/minecraft/server/SpawnerCreature.java @@ -196,7 +196,7 @@ public final class SpawnerCreature { entityskeleton.setPositionRotation((double) f, (double) f1, (double) f2, entityliving.yaw, 0.0F); // CraftBukkit - added a reason for spawning this creature - world.addEntity(entityskeleton, SpawnReason.NATURAL); + world.addEntity(entityskeleton, SpawnReason.JOCKEY); entityskeleton.mount(entityliving); } else if (entityliving instanceof EntitySheep) { ((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); // 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); flag = true; } |