Skip to content

Commit

Permalink
fixed duplicate ids in stone dust macerating
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Nov 26, 2023
1 parent 2c43f6b commit c2017c0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ public static void initAuto() {
}
});
AntimatterAPI.all(StoneType.class, s -> {
if (s.getMaterial() == NULL || !s.getMaterial().has(DUST)) return;
MACERATING.RB().ii(RecipeIngredient.of(s.getState().getBlock().asItem(), 1)).io(DUST.get(s.getMaterial(), 1)).add(s.getMaterial().getId() + "_dust",400, 2);
if (s.getMaterial() == NULL || !s.getMaterial().has(DUST) || s.isSandLike()) return;
MACERATING.RB().ii(RecipeIngredient.of(s.getState().getBlock().asItem(), 1)).io(DUST.get(s.getMaterial(), 1)).add(s.getId() + "_stone_to_" + s.getMaterial().getId() + "_dust",400, 2);
if (s instanceof CobbleStoneType){
MACERATING.RB().ii(RecipeIngredient.of(((CobbleStoneType)s).getBlock("cobble").asItem(), 1)).io(DUST.get(s.getMaterial(), 1)).add("cobbled_" + s.getMaterial().getId() + "_dust",400, 2);
MACERATING.RB().ii(RecipeIngredient.of(((CobbleStoneType)s).getBlock("cobble").asItem(), 1)).io(DUST.get(s.getMaterial(), 1)).add("cobbled_" + s.getId() + "_to_" + s.getMaterial().getId() + "_dust",400, 2);
}
});
AntimatterAPI.all(FluidPipe.class).forEach(t -> {
Expand Down

0 comments on commit c2017c0

Please sign in to comment.