From c671d30254837952009294900b5b33066ec21b76 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Wed, 27 Nov 2024 09:26:59 +0100 Subject: [PATCH] Fix JEI lag caused by non-crafting recipes being considered in terminal Closes CyclopsMC/IntegratedTerminals#141 --- .../modcompat/jei/JEIIntegratedTerminalsConfig.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/cyclops/integratedterminalscompat/modcompat/jei/JEIIntegratedTerminalsConfig.java b/src/main/java/org/cyclops/integratedterminalscompat/modcompat/jei/JEIIntegratedTerminalsConfig.java index fd2221e..6255316 100644 --- a/src/main/java/org/cyclops/integratedterminalscompat/modcompat/jei/JEIIntegratedTerminalsConfig.java +++ b/src/main/java/org/cyclops/integratedterminalscompat/modcompat/jei/JEIIntegratedTerminalsConfig.java @@ -70,10 +70,10 @@ public void registerIngredients(IModIngredientRegistration registration) { @Override public void registerRecipeTransferHandlers(IRecipeTransferRegistration registration) { - registration.addUniversalRecipeTransferHandler( - new TerminalStorageRecipeTransferHandler<>(ContainerTerminalStoragePart.class, RegistryEntries.CONTAINER_PART_TERMINAL_STORAGE_PART)); - registration.addUniversalRecipeTransferHandler( - new TerminalStorageRecipeTransferHandler<>(ContainerTerminalStorageItem.class, RegistryEntries.CONTAINER_PART_TERMINAL_STORAGE_ITEM)); + registration.addRecipeTransferHandler( + new TerminalStorageRecipeTransferHandler<>(ContainerTerminalStoragePart.class, RegistryEntries.CONTAINER_PART_TERMINAL_STORAGE_PART), RecipeTypes.CRAFTING); + registration.addRecipeTransferHandler( + new TerminalStorageRecipeTransferHandler<>(ContainerTerminalStorageItem.class, RegistryEntries.CONTAINER_PART_TERMINAL_STORAGE_ITEM), RecipeTypes.CRAFTING); } @Override