Skip to content

Commit a51e7b6

Browse files
committed
Allow mobs spawned by plugins trigger spawn messages (fixes #1)
1 parent caba1d6 commit a51e7b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/selfcoders/talkingmobs/EventListener.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void onCreatureSpawn(CreatureSpawnEvent event) {
3030
Entity entity = event.getEntity();
3131
CreatureSpawnEvent.SpawnReason spawnReason = event.getSpawnReason();
3232

33-
if (spawnReason == CreatureSpawnEvent.SpawnReason.SPAWNER || spawnReason == CreatureSpawnEvent.SpawnReason.SPAWNER_EGG) {
33+
if (spawnReason == CreatureSpawnEvent.SpawnReason.SPAWNER || spawnReason == CreatureSpawnEvent.SpawnReason.SPAWNER_EGG || spawnReason == CreatureSpawnEvent.SpawnReason.CUSTOM) {
3434
message.sendMessage(entity, Message.EventType.spawned);
3535
}
3636
}

0 commit comments

Comments
 (0)