From dd0150411181cf3f18e24bc8502694308e61f491 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Wed, 4 Nov 2015 15:37:17 -0500 Subject: [PATCH] Treat nether portal spawned mobs as spawner mobs. Fixes #2662 --- src/main/java/com/gmail/nossr50/listeners/EntityListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java index 77a7d5b0a..e6aedeaf9 100644 --- a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java @@ -440,6 +440,7 @@ public class EntityListener implements Listener { LivingEntity entity = event.getEntity(); switch (event.getSpawnReason()) { + case NETHER_PORTAL: case SPAWNER: case SPAWNER_EGG: entity.setMetadata(mcMMO.entityMetadataKey, mcMMO.metadataValue);