mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fix breeding sending incorrect messages
This commit is contained in:
parent
6e70258f9a
commit
bf70a42f6a
@ -1,3 +1,6 @@
|
|||||||
|
Version 2.1.93
|
||||||
|
Fixed a bug where players would be told they could not breed summoned animals when the animals weren't summoned (bug didn't actually do anything besides send you a message)
|
||||||
|
|
||||||
Version 2.1.92
|
Version 2.1.92
|
||||||
Call Of The Wild (COTW) no longer cares if entities of the same type are nearby when attempting to summon a new entity
|
Call Of The Wild (COTW) no longer cares if entities of the same type are nearby when attempting to summon a new entity
|
||||||
Fixed a bug where COTW summon limit was global instead of per player
|
Fixed a bug where COTW summon limit was global instead of per player
|
||||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>2.1.92</version>
|
<version>2.1.93-SNAPSHOT</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||||
<scm>
|
<scm>
|
||||||
|
@ -744,15 +744,18 @@ public class EntityListener implements Listener {
|
|||||||
Animals mom = (Animals) event.getMother();
|
Animals mom = (Animals) event.getMother();
|
||||||
Animals father = (Animals) event.getFather();
|
Animals father = (Animals) event.getFather();
|
||||||
|
|
||||||
|
//Prevent love mode spam
|
||||||
mom.setLoveModeTicks(0);
|
mom.setLoveModeTicks(0);
|
||||||
father.setLoveModeTicks(0);
|
father.setLoveModeTicks(0);
|
||||||
}
|
|
||||||
|
|
||||||
|
//Inform the player
|
||||||
if(event.getBreeder() instanceof Player) {
|
if(event.getBreeder() instanceof Player) {
|
||||||
Player player = (Player) event.getBreeder();
|
Player player = (Player) event.getBreeder();
|
||||||
NotificationManager.sendPlayerInformationChatOnly(player, "Taming.Summon.COTW.BreedingDisallowed");
|
NotificationManager.sendPlayerInformationChatOnly(player, "Taming.Summon.COTW.BreedingDisallowed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -616,14 +616,11 @@ permissions:
|
|||||||
children:
|
children:
|
||||||
mcmmo.ability.taming.callofthewild.horse: true
|
mcmmo.ability.taming.callofthewild.horse: true
|
||||||
mcmmo.ability.taming.callofthewild.ocelot: true
|
mcmmo.ability.taming.callofthewild.ocelot: true
|
||||||
mcmmo.ability.taming.callofthewild.renamepets: true
|
|
||||||
mcmmo.ability.taming.callofthewild.wolf: true
|
mcmmo.ability.taming.callofthewild.wolf: true
|
||||||
mcmmo.ability.taming.callofthewild.horse:
|
mcmmo.ability.taming.callofthewild.horse:
|
||||||
description: Allows players to summon Horses with Call of the Wild
|
description: Allows players to summon Horses with Call of the Wild
|
||||||
mcmmo.ability.taming.callofthewild.ocelot:
|
mcmmo.ability.taming.callofthewild.ocelot:
|
||||||
description: Allows players to summon Ocelots with Call of the Wild
|
description: Allows players to summon Ocelots with Call of the Wild
|
||||||
mcmmo.ability.taming.callofthewild.renamepets:
|
|
||||||
description: Allows players to rename pets with Call of the Wild
|
|
||||||
mcmmo.ability.taming.callofthewild.wolf:
|
mcmmo.ability.taming.callofthewild.wolf:
|
||||||
description: Allows players to summon Wolves with Call of the Wild
|
description: Allows players to summon Wolves with Call of the Wild
|
||||||
mcmmo.ability.taming.environmentallyaware:
|
mcmmo.ability.taming.environmentallyaware:
|
||||||
|
Loading…
Reference in New Issue
Block a user