Give no mcMMO xp for skeletons that spawn as a spider jokey pair from spawners.

This commit is contained in:
NuclearW 2013-05-11 18:54:25 -04:00
parent 2b414526e5
commit 0261d16140

View File

@ -306,6 +306,9 @@ public class EntityListener implements Listener {
if (reason == SpawnReason.SPAWNER || reason == SpawnReason.SPAWNER_EGG) {
event.getEntity().setMetadata(mcMMO.entityMetadataKey, mcMMO.metadataValue);
if(event.getEntity().getPassenger() != null) {
event.getEntity().getPassenger().setMetadata(mcMMO.entityMetadataKey, mcMMO.metadataValue);
}
}
}