mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
Fix missing Squeezer recipes in JEI
This commit is contained in:
1 parent
65bd93749c
commit
1d8d61daf1
3 files changed
+3
-9
No files matched your search
@@ -34,6 +34,6 @@ public class RainmakerRecipeHandler implements IRecipeHandler<RainmakerRecipeWra
|
||||
|
||||
@Override
|
||||
public boolean isRecipeValid(@Nonnull RainmakerRecipeWrapper wrapper) {
|
||||
return !wrapper.getInputs().isEmpty();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import forestry.core.recipes.jei.ForestryRecipeWrapper;
|
||||
import mezz.jei.api.recipe.IRecipeHandler;
|
||||
import mezz.jei.api.recipe.IRecipeWrapper;
|
||||
|
||||
public class SqueezerRecipeHandler<R extends ForestryRecipeWrapper> implements IRecipeHandler<R> {
|
||||
public class SqueezerRecipeHandler<R extends AbstractSqueezerRecipeWrapper> implements IRecipeHandler<R> {
|
||||
|
||||
@Nonnull
|
||||
private final Class<R> recipeClass;
|
||||
@@ -42,12 +42,6 @@ public class SqueezerRecipeHandler<R extends ForestryRecipeWrapper> implements I
|
||||
|
||||
@Override
|
||||
public boolean isRecipeValid(@Nonnull R wrapper) {
|
||||
if (wrapper.getFluidOutputs() == null || wrapper.getFluidOutputs().isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
if (wrapper.getInputs() == null || wrapper.getInputs().isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user