Allow Spawner eggs to override settings
This commit is contained in:
parent
fbbe031b2c
commit
0c96da48f9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue