Skip to content

Commit

Permalink
Fixing rf turtle chargers not working (removes BC-only compat)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinv11 committed Feb 26, 2015
1 parent 6a9602b commit 2afac39
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repositories{

apply plugin: 'forge'

version = "1.2.0-dev"+env.DRONE_BUILD_NUMBER
version = "1.2.0-dev"
group= "com.austinv11.peripheralsplusplus" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Peripherals++"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public static void init(){
if (Config.enableRFCharger)
if (Loader.isModLoaded("ThermalExpansion"))
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rfCharger), "rlr", "lcl", "rer", 'r', "dustRedstone", 'l', "ingotLead", 'c', new ItemStack(GameRegistry.findItem("ThermalExpansion", "capacitor"), 1, 2), 'e', new ItemStack(GameRegistry.findItem("ThermalExpansion", "material"), 1, 3)));
else if (Loader.isModLoaded("BuildCraft|Core"))
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rfCharger), "rlr", "lcl", "rer", 'r', "dustRedstone", 'l', "gearIron", 'c', "gearGold", 'e', new ItemStack(GameRegistry.findItem("BuildCraft|Transport", "item.buildcraftPipe.pipepowergold"))));
// else if (Loader.isModLoaded("BuildCraft|Core"))
// GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rfCharger), "rlr", "lcl", "rer", 'r', "dustRedstone", 'l', "gearIron", 'c', "gearGold", 'e', new ItemStack(GameRegistry.findItem("BuildCraft|Transport", "item.buildcraftPipe.pipepowergold"))));
if (Config.enableOreDictionary)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.oreDictionary), "isi", "sbs", "isi", 'i', "ingotIron", 's', "stone", 'b', new ItemStack(Items.book)));
if (Config.enableAnalyzers && Loader.isModLoaded("Forestry")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void setupVillagers() {
public void registerTileEntities() {
GameRegistry.registerTileEntity(TileEntityChatBox.class, TileEntityChatBox.publicName);
GameRegistry.registerTileEntity(TileEntityPlayerSensor.class, TileEntityPlayerSensor.publicName);
if (Loader.isModLoaded("ThermalExpansion") || Loader.isModLoaded("BuildCraft|Core"))
if (Loader.isModLoaded("ThermalExpansion")/* || Loader.isModLoaded("BuildCraft|Core")*/)
GameRegistry.registerTileEntity(TileEntityRFCharger.class, TileEntityRFCharger.publicName);
GameRegistry.registerTileEntity(TileEntityOreDictionary.class, TileEntityOreDictionary.publicName);
if (Loader.isModLoaded("Forestry")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.util.ArrayList;
import java.util.List;

@Optional.Interface(modid = "ThermalExpansion;BuildCraft|Core", iface = "cofh.api.energy.IEnergyReceiver", striprefs = true)
@Optional.Interface(modid = "ThermalExpansion", iface = "cofh.api.energy.IEnergyReceiver", striprefs = true)
public class TileEntityRFCharger extends NetworkedTileEntity implements IEnergyReceiver {
private EnergyStorage storage = new EnergyStorage(80000);//Leadstone Capacitor

Expand Down

0 comments on commit 2afac39

Please sign in to comment.