Merge pull request #1527 from madsboddum/fix/namegen/duplicate-namefilter-load

When generating a name for a given Race, don't bother checking if the…
This commit is contained in:
Josh
2024-04-25 20:17:57 -05:00
committed by GitHub
@@ -1,5 +1,5 @@
/***********************************************************************************
* Copyright (c) 2023 /// Project SWG /// www.projectswg.com *
* Copyright (c) 2024 /// Project SWG /// www.projectswg.com *
* *
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
@@ -51,8 +51,6 @@ public class SWGNameGenerator {
@NotNull
public String generateRaceName(@NotNull Race race) {
if (!nameFilter.isLoaded())
nameFilter.load();
return generateName("race_" + race.getSpecies());
}