aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-06-03 14:48:00 +0800
committershedaniel <daniel@shedaniel.me>2021-06-03 14:48:00 +0800
commitd0a092c29f21136fb7654afc87afc3557b4b39f4 (patch)
tree5c660e2451a7b9f3ef47d4c74a05196bce589c10
parente9c230bfcd93b3bb6191a668891d99c1f241e5be (diff)
downloadRoughlyEnoughItems-d0a092c29f21136fb7654afc87afc3557b4b39f4.tar.gz
RoughlyEnoughItems-d0a092c29f21136fb7654afc87afc3557b4b39f4.tar.bz2
RoughlyEnoughItems-d0a092c29f21136fb7654afc87afc3557b4b39f4.zip
Remove forced display serializer check
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/registry/category/CategoryRegistryImpl.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/registry/category/CategoryRegistryImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/registry/category/CategoryRegistryImpl.java
index 3940c9078..c9fd3b925 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/registry/category/CategoryRegistryImpl.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/registry/category/CategoryRegistryImpl.java
@@ -29,9 +29,7 @@ import me.shedaniel.rei.api.client.registry.category.CategoryRegistry;
import me.shedaniel.rei.api.client.registry.display.DisplayCategory;
import me.shedaniel.rei.api.common.category.CategoryIdentifier;
import me.shedaniel.rei.api.common.display.Display;
-import me.shedaniel.rei.api.common.display.DisplaySerializerRegistry;
import me.shedaniel.rei.api.common.entry.EntryIngredient;
-import me.shedaniel.rei.api.common.util.CollectionUtils;
import org.jetbrains.annotations.ApiStatus;
import java.util.*;
@@ -53,20 +51,6 @@ public class CategoryRegistryImpl implements CategoryRegistry {
}
@Override
- public void endReload() {
- List<CategoryIdentifier<?>> notRegisteredSerializers = new ArrayList<>();
- for (CategoryIdentifier<?> identifier : this.categories.keySet()) {
- if (!DisplaySerializerRegistry.getInstance().hasSerializer(identifier)) {
- notRegisteredSerializers.add(identifier);
- }
- }
- if (!notRegisteredSerializers.isEmpty()) {
- throw new IllegalStateException(notRegisteredSerializers.size() + " categories did not register their serializers! " +
- CollectionUtils.mapAndJoinToString(notRegisteredSerializers, Object::toString, ", "));
- }
- }
-
- @Override
public <T extends Display> void add(DisplayCategory<T> category, Consumer<CategoryConfiguration<T>> configurator) {
Configuration<T> configuration = new Configuration<>(category);
this.categories.put(category.getCategoryIdentifier(), configuration);