Split up Proxies.common code

This commit is contained in:
mezz committed 2015-10-17 12:25:13 -07:00
1 parent 0ea878d7bc
commit 9899687786
69 files changed
+460 -612

No files matched your search

@@ -17,8 +17,9 @@ import cpw.mods.fml.common.registry.GameRegistry;
import forestry.core.config.Constants;
import forestry.core.config.ForestryItem;
import forestry.core.proxy.Proxies;
import forestry.core.recipes.RecipeUtil;
import forestry.core.utils.Log;
import forestry.core.utils.ModUtil;
@Plugin(pluginID = "BC6|Transport", name = "BuildCraft 6 Transport", author = "mezz", url = Constants.URL, unlocalizedDescription = "for.plugin.buildcraft6.description")
public class PluginBuildCraftTransport extends ForestryPlugin {
@@ -27,7 +28,7 @@ public class PluginBuildCraftTransport extends ForestryPlugin {
@Override
public boolean isAvailable() {
return Proxies.common.isModLoaded(BCT);
return ModUtil.isModLoaded(BCT);
}
@Override
@@ -41,7 +42,7 @@ public class PluginBuildCraftTransport extends ForestryPlugin {
if (beeswax != null) {
Item pipeWaterproof = GameRegistry.findItem(BCT, "pipeWaterproof");
if (pipeWaterproof != null) {
Proxies.common.addShapelessRecipe(new ItemStack(pipeWaterproof), beeswax);
RecipeUtil.addShapelessRecipe(new ItemStack(pipeWaterproof), beeswax);
} else {
Log.fine("No BuildCraft pipe waterproof found.");
}