Fixed inverted check of mob spawner / egg entities

This commit is contained in:
bm01
2013-01-25 21:45:30 +01:00
parent 46f1157030
commit 071f7edade
2 changed files with 6 additions and 1 deletions

View File

@ -217,9 +217,13 @@ public class EntityListener implements Listener {
*/
@EventHandler (priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onCreatureSpawn(CreatureSpawnEvent event) {
if (Misc.isSpawnerXPEnabled) {
return;
}
SpawnReason reason = event.getSpawnReason();
if ((reason.equals(SpawnReason.SPAWNER) || reason.equals(SpawnReason.SPAWNER_EGG)) && Misc.isSpawnerXPEnabled) {
if (reason.equals(SpawnReason.SPAWNER) || reason.equals(SpawnReason.SPAWNER_EGG)) {
mcMMO.placeStore.addSpawnedMob(event.getEntity());
}
}