Allow eggs to spawn monsters

This commit is contained in:
Eric Stokes 2012-01-28 08:27:41 -07:00
parent b2578b1736
commit 18a57bf975
1 changed files with 1 additions and 2 deletions

View File

@ -85,9 +85,8 @@ public class MVEntityListener implements Listener {
*/
@EventHandler
public void creatureSpawn(CreatureSpawnEvent event) {
// Check to see if the Creature is spawned by a plugin, we don't want to prevent this behaviour.
if (event.getSpawnReason() == SpawnReason.CUSTOM) {
if (event.getSpawnReason() == SpawnReason.CUSTOM || event.getSpawnReason() == SpawnReason.EGG) {
return;
}