diff --git a/src/main/java/org/quiltmc/qsl/frozenblock/core/registry/api/event/DynamicRegistryManagerSetupContext.java b/src/main/java/org/quiltmc/qsl/frozenblock/core/registry/api/event/DynamicRegistryManagerSetupContext.java index e8642762e..d74beaf56 100644 --- a/src/main/java/org/quiltmc/qsl/frozenblock/core/registry/api/event/DynamicRegistryManagerSetupContext.java +++ b/src/main/java/org/quiltmc/qsl/frozenblock/core/registry/api/event/DynamicRegistryManagerSetupContext.java @@ -81,7 +81,7 @@ public interface DynamicRegistryManagerSetupContext { */ @Contract(pure = true) default @Nullable RegistryMap getRegistries(@NotNull Set>> 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>, Registry> foundRegistries = null;