1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-04 06:34:44 +02:00

Fix breeding sending incorrect messages

This commit is contained in:
nossr50
2019-07-02 12:45:25 -07:00
parent 6e70258f9a
commit bf70a42f6a
4 changed files with 11 additions and 8 deletions
Changelog.txtpom.xml
src/main
java
com
gmail
nossr50
resources

@ -744,14 +744,17 @@ public class EntityListener implements Listener {
Animals mom = (Animals) event.getMother();
Animals father = (Animals) event.getFather();
//Prevent love mode spam
mom.setLoveModeTicks(0);
father.setLoveModeTicks(0);
//Inform the player
if(event.getBreeder() instanceof Player) {
Player player = (Player) event.getBreeder();
NotificationManager.sendPlayerInformationChatOnly(player, "Taming.Summon.COTW.BreedingDisallowed");
}
}
if(event.getBreeder() instanceof Player) {
Player player = (Player) event.getBreeder();
NotificationManager.sendPlayerInformationChatOnly(player, "Taming.Summon.COTW.BreedingDisallowed");
}
}
}