Skip to content

Commit

Permalink
change == 0 to isEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
Treetrain1 committed Sep 4, 2023
1 parent e5970e0 commit 4c78cf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public interface DynamicRegistryManagerSetupContext {
*/
@Contract(pure = true)
default @Nullable RegistryMap getRegistries(@NotNull Set<ResourceKey<? extends Registry<?>>> registryKeys) {
if (registryKeys.size() == 0) throw new IllegalArgumentException("Please provide at least one registry to gather.");
if (registryKeys.isEmpty()) throw new IllegalArgumentException("Please provide at least one registry to gather.");

Map<ResourceKey<? extends Registry<?>>, Registry<?>> foundRegistries = null;

Expand Down

0 comments on commit 4c78cf8

Please sign in to comment.