Skip to content

Commit b1ae3d8

Browse files
committed
fix(planets): prevent celestial map planet duplicates
1 parent 1316c4a commit b1ae3d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/micdoodle8/mods/galacticraft/core/GalacticraftCore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ private Planet makeDummyPlanet(String name, SolarSystem system)
781781
// reachable dimension first
782782
for (CelestialBody body : new ArrayList<>(GalaxyRegistry.getPlanets()))
783783
{
784-
if (body instanceof Planet && name.equals(body.getName()))
784+
if (body instanceof Planet && name.equalsIgnoreCase(body.getName()))
785785
{
786786
if (((Planet) body).getParentSolarSystem() == system)
787787
{

0 commit comments

Comments
 (0)