From 7c137d8b1977a310cc0a2ed08748a482b27cf8e0 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Fri, 30 Mar 2012 05:41:52 -0500 Subject: [PATCH] Added a reason for randomly spawning Ocelot babies. Addresses BUKKIT-1391 --- src/main/java/net/minecraft/server/SpawnerCreature.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java index 888d03a46f..48a710b7b1 100644 --- a/src/main/java/net/minecraft/server/SpawnerCreature.java +++ b/src/main/java/net/minecraft/server/SpawnerCreature.java @@ -213,7 +213,7 @@ public final class SpawnerCreature { entityocelot.setPositionRotation((double) f, (double) f1, (double) f2, entityliving.yaw, 0.0F); entityocelot.setAge(-24000); - world.addEntity(entityocelot); + world.addEntity(entityocelot, SpawnReason.NATURAL); // CraftBukkit - SpawnReason } } }