Skip to content

Commit

Permalink
fix(planets): prevent celestial map planet duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMVoid95 committed Nov 25, 2022
1 parent 1316c4a commit b1ae3d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ private Planet makeDummyPlanet(String name, SolarSystem system)
// reachable dimension first
for (CelestialBody body : new ArrayList<>(GalaxyRegistry.getPlanets()))
{
if (body instanceof Planet && name.equals(body.getName()))
if (body instanceof Planet && name.equalsIgnoreCase(body.getName()))
{
if (((Planet) body).getParentSolarSystem() == system)
{
Expand Down

0 comments on commit b1ae3d8

Please sign in to comment.