Skip to content

Commit

Permalink
Replace Shuttle Tank with Copper Tamk
Browse files Browse the repository at this point in the history
  • Loading branch information
glowredman committed May 23, 2023
1 parent bd0f28c commit e344d6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/de/katzenpapst/amunra/AmunRa.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public class AmunRa {

public static boolean isNHCoreLoaded;
public static boolean isIronChestsLoaded;
public static boolean isIronTanksLoaded;
public static boolean isASPLoaded;

@SidedProxy(
Expand All @@ -176,6 +177,7 @@ public class AmunRa {
public void preInit(final FMLPreInitializationEvent event) {
isNHCoreLoaded = Loader.isModLoaded("dreamcraft");
isIronChestsLoaded = Loader.isModLoaded("IronChest");
isIronTanksLoaded = Loader.isModLoaded("irontank");
isASPLoaded = Loader.isModLoaded("AdvancedSolarPanel");

final Configuration configFile = new Configuration(event.getSuggestedConfigurationFile());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ public static void addRocketRecipeWithChestPermutations(final Item rocket,
final int chestSlot3 = 21;

ItemStack chest;
final ItemStack tank = ARItems.shuttleTank.getItemStack(1);
ItemStack tank;

if (AmunRa.isIronChestsLoaded) {
// Copper Chest
Expand All @@ -1091,6 +1091,12 @@ public static void addRocketRecipeWithChestPermutations(final Item rocket,
chest = new ItemStack(Blocks.chest);
}

if (AmunRa.isIronTanksLoaded) {
tank = GameRegistry.findItemStack("irontank", "copperTank", 1);
} else {
tank = ARItems.shuttleTank.getItemStack(1);
}

/*
* ItemStack numChests0 = new ItemStack(rocket, 1, 0); ItemStack numChests1 = new ItemStack(rocket, 1, 1);
* ItemStack numChests2 = new ItemStack(rocket, 1, 2); ItemStack numChests3 = new ItemStack(rocket, 1, 3);
Expand Down

0 comments on commit e344d6b

Please sign in to comment.