mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Give no mcMMO xp for skeletons that spawn as a spider jokey pair from spawners.
This commit is contained in:
parent
2b414526e5
commit
0261d16140
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user