Skip to content

Commit

Permalink
refactor: remove throws in register method
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMVoid95 committed Feb 12, 2023
1 parent 83bb80d commit d4c8438
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,18 +219,6 @@ public static <T> void register(T object)
objects.add(celestialType);
MinecraftForge.EVENT_BUS.post(registerEvent);
}
throw new GalacticraftRegistryException("Unable to register " + object);
}

public static class GalacticraftRegistryException extends RuntimeException
{

private static final long serialVersionUID = -6874512550357215087L;

public GalacticraftRegistryException(String message)
{
super(message);
}
}

/**
Expand Down

0 comments on commit d4c8438

Please sign in to comment.