Skip to content

Commit

Permalink
fix #1397
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Apr 19, 2024
1 parent aefd4b0 commit 87280d4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions FABRIC_CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Change logging starts below:
----------
- added red sandpaper as a polishing workstation to EMI (#1453)
- fix a possible error in EMI init (#1439)
- - fix deploying in EMI missing sandpaper and item application recipes (#1397)
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,11 @@
import com.simibubi.create.content.kinetics.mixer.MixingRecipe;
import com.simibubi.create.content.kinetics.press.MechanicalPressBlockEntity;
import com.simibubi.create.content.kinetics.saw.SawBlockEntity;
import com.simibubi.create.content.legacy.ChromaticCompoundItem;
import com.simibubi.create.content.legacy.NoGravMagicalDohickyItem;
import com.simibubi.create.content.logistics.filter.AttributeFilterScreen;
import com.simibubi.create.content.logistics.filter.FilterScreen;
import com.simibubi.create.content.processing.basin.BasinRecipe;
import com.simibubi.create.content.processing.recipe.ProcessingRecipeBuilder;
import com.simibubi.create.content.redstone.link.controller.LinkedControllerScreen;
import com.simibubi.create.content.trains.schedule.ScheduleItem;
import com.simibubi.create.content.trains.schedule.ScheduleScreen;
import com.simibubi.create.foundation.fluid.FluidIngredient;
import com.simibubi.create.foundation.gui.menu.AbstractSimiContainerScreen;
Expand Down Expand Up @@ -278,6 +275,9 @@ public void register(EmiRegistry registry) {
}
}
addAll(registry, AllRecipeTypes.DEPLOYING, DeployingEmiRecipe::new);
addAll(registry, AllRecipeTypes.SANDPAPER_POLISHING, DeployingEmiRecipe::fromSandpaper);
addAll(registry, AllRecipeTypes.ITEM_APPLICATION, DeployingEmiRecipe::fromItemApplication);

for (ConversionRecipe recipe : MysteriousConversionEmiRecipe.RECIPES) {
registry.addRecipe(new MysteriousConversionEmiRecipe(recipe));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

import com.simibubi.create.compat.emi.CreateEmiAnimations;
import com.simibubi.create.compat.emi.CreateEmiPlugin;
import com.simibubi.create.content.equipment.sandPaper.SandPaperPolishingRecipe;
import com.simibubi.create.content.kinetics.deployer.DeployerApplicationRecipe;
import com.simibubi.create.content.kinetics.deployer.ManualApplicationRecipe;
import com.simibubi.create.foundation.gui.AllGuiTextures;

import dev.emi.emi.api.stack.EmiIngredient;
Expand Down Expand Up @@ -37,4 +39,12 @@ public void addWidgets(WidgetHolder widgets) {

CreateEmiAnimations.addDeployer(widgets, widgets.getWidth() / 2 - 13, 30);
}

public static DeployingEmiRecipe fromSandpaper(SandPaperPolishingRecipe recipe) {
return new DeployingEmiRecipe(DeployerApplicationRecipe.convert(recipe));
}

public static DeployingEmiRecipe fromItemApplication(ManualApplicationRecipe recipe) {
return new DeployingEmiRecipe(ManualApplicationRecipe.asDeploying(recipe));
}
}

0 comments on commit 87280d4

Please sign in to comment.