Skip to content

Commit d4c8438

Browse files
committed
refactor: remove throws in register method
1 parent 83bb80d commit d4c8438

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/main/java/micdoodle8/mods/galacticraft/api/galaxies/GalaxyRegistry.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,6 @@ public static <T> void register(T object)
219219
objects.add(celestialType);
220220
MinecraftForge.EVENT_BUS.post(registerEvent);
221221
}
222-
throw new GalacticraftRegistryException("Unable to register " + object);
223-
}
224-
225-
public static class GalacticraftRegistryException extends RuntimeException
226-
{
227-
228-
private static final long serialVersionUID = -6874512550357215087L;
229-
230-
public GalacticraftRegistryException(String message)
231-
{
232-
super(message);
233-
}
234222
}
235223

236224
/**

0 commit comments

Comments
 (0)