Allow Spawner eggs to override settings

This commit is contained in:
Eric Stokes 2012-02-21 16:58:36 -07:00
parent fbbe031b2c
commit 0c96da48f9
1 changed files with 2 additions and 2 deletions

View File

@ -86,8 +86,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.
// TODO: Implement MONSTER_EGG when it becomes available.
if (event.getSpawnReason() == SpawnReason.CUSTOM) {
// TODO: Allow the egg thing to be a config param. Doubt this will be per world; seems silly.
if (event.getSpawnReason() == SpawnReason.CUSTOM || event.getSpawnReason() == SpawnReason.SPAWNER_EGG) {
return;
}