Skip to content

Commit

Permalink
Display child's name in the new child message (ldtteam#7098)
Browse files Browse the repository at this point in the history
In the new child message, add the child's name.
  • Loading branch information
chandler05 authored May 15, 2021
1 parent 391bb68 commit d11eeed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ else if (!data.isChild())
final int populationCount = building.getColony().getCitizenManager().getCurrentCitizenCount();
AdvancementUtils.TriggerAdvancementPlayersForColony(building.getColony(), playerMP -> AdvancementTriggers.COLONY_POPULATION.trigger(playerMP, populationCount));

LanguageHandler.sendPlayersMessage(building.getColony().getImportantMessageEntityPlayers(), "com.minecolonies.coremod.progress.newChild", building.getColony().getName());
LanguageHandler.sendPlayersMessage(building.getColony().getImportantMessageEntityPlayers(), "com.minecolonies.coremod.progress.newChild", newCitizen.getName(), building.getColony().getName());
building.getColony().getCitizenManager().spawnOrCreateCitizen(newCitizen, building.getColony().getWorld(), building.getPosition());

building.getColony().getEventDescriptionManager().addEventDescription(new CitizenBornEvent(building.getPosition(), newCitizen.getName()));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/minecolonies/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@
"com.minecolonies.coremod.progress.twenty_building_levels": "§6 A barbarian spy had been caught next to your colony, and he seems to be from a bigger group! You should consider building Barracks to defend your colony.",
"com.minecolonies.coremod.progress.twenty_five_citizens_spawned": "§6 Your colony's population has grown to the limits of current management techniques. To accept more citizens, complete the research at the University.",
"com.minecolonies.coremod.progress.not_enough_jobs": "§6 Building more Houses than available jobs has a bad influence on your citizens' happiness.",
"com.minecolonies.coremod.progress.newchild": "§6 A new child is now happily living in %s!",
"com.minecolonies.coremod.progress.newchild": "§6 A new child, %s, is now happily living in %s!",
"com.minecolonies.coremod.progress.childgrow": "%s grew up and wants a job now.",
"com.minecolonies.coremod.progress.hirecitizen": "§6 Your recruitment package was accepted and a new citizen arrived!",

Expand Down

0 comments on commit d11eeed

Please sign in to comment.