Skip to content

Commit

Permalink
Adjust Implosion Compressor to not half explosives (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALongStringOfNumbers authored Nov 2, 2021
1 parent 69bb7f3 commit 8222712
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ public ImplosionRecipeBuilder explosivesType(ItemStack explosivesType) {
public ValidationResult<Recipe> build() {

//Adjust the explosive type and the explosive amount. This is done here because it was null otherwise, for some reason
int amount = Math.max(1, explosivesAmount / 2);
if (explosivesType == null) {
this.explosivesType = new ItemStack(Blocks.TNT, amount);
this.explosivesType = new ItemStack(Blocks.TNT, explosivesAmount);
} else {
this.explosivesType = new ItemStack(explosivesType.getItem(), amount, explosivesType.getMetadata());
this.explosivesType = new ItemStack(explosivesType.getItem(), explosivesAmount, explosivesType.getMetadata());
}
inputs.add(CountableIngredient.from(explosivesType));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static void processDust(OrePrefix dustPrefix, Material mat, DustProperty
RecipeMaps.IMPLOSION_RECIPES.recipeBuilder()
.input(dustPrefix, mat, 4)
.outputs(GTUtility.copyAmount(3, gemStack), GTUtility.copyAmount(2, tinyDarkAshStack))
.explosivesAmount(4)
.explosivesAmount(2)
.buildAndRegister();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ private static void registerAlloyRecipes() {
COMPRESSOR_RECIPES.recipeBuilder().inputs(MetaItems.INGOT_MIXED_METAL.getStackForm()).outputs(MetaItems.ADVANCED_ALLOY_PLATE.getStackForm()).duration(300).EUt(2).buildAndRegister();
BENDER_RECIPES.recipeBuilder().inputs(MetaItems.INGOT_MIXED_METAL.getStackForm()).circuitMeta(1).outputs(MetaItems.ADVANCED_ALLOY_PLATE.getStackForm()).duration(100).EUt(8).buildAndRegister();
FORMING_PRESS_RECIPES.recipeBuilder().inputs(ADVANCED_ALLOY_PLATE.getStackForm(4)).input(OrePrefix.plate, Materials.Diamond).input(OrePrefix.plate, Materials.Iridium, 4).outputs(MetaItems.INGOT_IRIDIUM_ALLOY.getStackForm()).duration(100).EUt(256).buildAndRegister();
IMPLOSION_RECIPES.recipeBuilder().inputs(MetaItems.INGOT_IRIDIUM_ALLOY.getStackForm()).outputs(MetaItems.PLATE_IRIDIUM_ALLOY.getStackForm()).output(OrePrefix.dustTiny, Materials.DarkAsh, 4).explosivesAmount(8).buildAndRegister();
IMPLOSION_RECIPES.recipeBuilder().inputs(MetaItems.INGOT_IRIDIUM_ALLOY.getStackForm()).outputs(MetaItems.PLATE_IRIDIUM_ALLOY.getStackForm()).output(OrePrefix.dustTiny, Materials.DarkAsh, 4).explosivesAmount(4).buildAndRegister();
COMPRESSOR_RECIPES.recipeBuilder().inputs(MetaItems.CARBON_FIBERS.getStackForm(2)).outputs(MetaItems.CARBON_MESH.getStackForm()).buildAndRegister();
COMPRESSOR_RECIPES.recipeBuilder().inputs(MetaItems.CARBON_MESH.getStackForm()).outputs(MetaItems.CARBON_PLATE.getStackForm()).buildAndRegister();

Expand Down

0 comments on commit 8222712

Please sign in to comment.