Skip to content

Commit

Permalink
Fixed issue #756 - Unable to Craft Electric Rocket using Tier 10 Rock…
Browse files Browse the repository at this point in the history
…ets that have storage applied
  • Loading branch information
MJRLegends committed Apr 24, 2024
1 parent ac29765 commit 39e1287
Showing 1 changed file with 71 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,72 +45,76 @@ public static void removeAllTier10ElectricRocketRecipes() {
}

public static void registerRocketCraftingRecipe() {
HashMap<Integer, ItemStack> input = new HashMap<Integer, ItemStack>();
input.put(1, new ItemStack(ExtraPlanets_Items.TIER_10_NOSE_CONE)); // Cone
// Body
input.put(2, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(3, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(4, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(5, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(6, new ItemStack(ExtraPlanets_Items.TIER_10_ROCKET, 1));
input.put(7, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(8, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(9, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(10, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(11, new ItemStack(ExtraPlanets_Items.TIER_10_ROCKET, 1));

input.put(12, new ItemStack(ExtraPlanets_Items.ELECTRIC_PARTS, 1, 1)); // Booster
input.put(13, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 2)); // Fin
input.put(14, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 2)); // Fin
input.put(15, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 0)); // Engine
input.put(16, new ItemStack(ExtraPlanets_Items.ELECTRIC_PARTS, 1, 1)); // Booster
input.put(17, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 2)); // Fin
input.put(18, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 2)); // Fin
input.put(19, ItemStack.EMPTY);
input.put(20, ItemStack.EMPTY);
input.put(21, ItemStack.EMPTY);
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 0), input));

HashMap<Integer, ItemStack> input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, new ItemStack(Blocks.CHEST));
input2.put(20, ItemStack.EMPTY);
input2.put(21, ItemStack.EMPTY);
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 1), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, ItemStack.EMPTY);
input2.put(20, new ItemStack(Blocks.CHEST));
input2.put(21, ItemStack.EMPTY);
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 1), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, ItemStack.EMPTY);
input2.put(20, ItemStack.EMPTY);
input2.put(21, new ItemStack(Blocks.CHEST));
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 1), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, new ItemStack(Blocks.CHEST));
input2.put(20, new ItemStack(Blocks.CHEST));
input2.put(21, ItemStack.EMPTY);
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 2), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, new ItemStack(Blocks.CHEST));
input2.put(20, ItemStack.EMPTY);
input2.put(21, new ItemStack(Blocks.CHEST));
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 2), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, ItemStack.EMPTY);
input2.put(20, new ItemStack(Blocks.CHEST));
input2.put(21, new ItemStack(Blocks.CHEST));
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 2), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, new ItemStack(Blocks.CHEST));
input2.put(20, new ItemStack(Blocks.CHEST));
input2.put(21, new ItemStack(Blocks.CHEST));
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 3), input2));
for(int i = 0; i < 4; i++) {
for(int j = 0; j < 4; j++) {
HashMap<Integer, ItemStack> input = new HashMap<Integer, ItemStack>();
input.put(1, new ItemStack(ExtraPlanets_Items.TIER_10_NOSE_CONE)); // Cone
// Body
input.put(2, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(3, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(4, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(5, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(6, new ItemStack(ExtraPlanets_Items.TIER_10_ROCKET, 1, i));
input.put(7, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(8, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(9, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(10, new ItemStack(ExtraPlanets_Items.TIER_11_ITEMS, 1, 6));
input.put(11, new ItemStack(ExtraPlanets_Items.TIER_10_ROCKET, 1, j));

input.put(12, new ItemStack(ExtraPlanets_Items.ELECTRIC_PARTS, 1, 1)); // Booster
input.put(13, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 2)); // Fin
input.put(14, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 2)); // Fin
input.put(15, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 0)); // Engine
input.put(16, new ItemStack(ExtraPlanets_Items.ELECTRIC_PARTS, 1, 1)); // Booster
input.put(17, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 2)); // Fin
input.put(18, new ItemStack(ExtraPlanets_Items.TIER_10_ITEMS, 1, 2)); // Fin
input.put(19, ItemStack.EMPTY);
input.put(20, ItemStack.EMPTY);
input.put(21, ItemStack.EMPTY);
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 0), input));

HashMap<Integer, ItemStack> input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, new ItemStack(Blocks.CHEST));
input2.put(20, ItemStack.EMPTY);
input2.put(21, ItemStack.EMPTY);
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 1), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, ItemStack.EMPTY);
input2.put(20, new ItemStack(Blocks.CHEST));
input2.put(21, ItemStack.EMPTY);
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 1), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, ItemStack.EMPTY);
input2.put(20, ItemStack.EMPTY);
input2.put(21, new ItemStack(Blocks.CHEST));
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 1), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, new ItemStack(Blocks.CHEST));
input2.put(20, new ItemStack(Blocks.CHEST));
input2.put(21, ItemStack.EMPTY);
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 2), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, new ItemStack(Blocks.CHEST));
input2.put(20, ItemStack.EMPTY);
input2.put(21, new ItemStack(Blocks.CHEST));
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 2), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, ItemStack.EMPTY);
input2.put(20, new ItemStack(Blocks.CHEST));
input2.put(21, new ItemStack(Blocks.CHEST));
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 2), input2));

input2 = new HashMap<Integer, ItemStack>(input);
input2.put(19, new ItemStack(Blocks.CHEST));
input2.put(20, new ItemStack(Blocks.CHEST));
input2.put(21, new ItemStack(Blocks.CHEST));
Tier10ElectricRocketRecipes.addTier10ElectricRocketRecipe(new NasaWorkbenchRecipe(new ItemStack(ExtraPlanets_Items.TIER_10_ELECTRIC_ROCKET, 1, 3), input2));
}
}
}
}

0 comments on commit 39e1287

Please sign in to comment.