mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Bulletproof the BC pipe sealant recipe, make it shapeless
This commit is contained in:
1 parent
fe84d52c38
commit
deb6afaf08
1 file changed
+8
-6
@@ -13,7 +13,6 @@ package forestry.plugins;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import cpw.mods.fml.common.Optional;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
import forestry.core.config.Defaults;
|
||||
@@ -35,13 +34,16 @@ public class PluginBuildCraftTransport extends ForestryPlugin {
|
||||
return "BuildCraft|Transport not found";
|
||||
}
|
||||
|
||||
@Optional.Method(modid = "BuildCraft|Transport")
|
||||
@Override
|
||||
protected void registerRecipes() {
|
||||
|
||||
Item pipeWaterproof = GameRegistry.findItem(BCT, "pipeWaterproof");
|
||||
if (pipeWaterproof != null) {
|
||||
Proxies.common.addRecipe(new ItemStack(pipeWaterproof), "#", '#', ForestryItem.beeswax);
|
||||
Item beeswax = ForestryItem.beeswax.item();
|
||||
if (beeswax != null) {
|
||||
Item pipeWaterproof = GameRegistry.findItem(BCT, "pipeWaterproof");
|
||||
if (pipeWaterproof != null) {
|
||||
Proxies.common.addShapelessRecipe(new ItemStack(pipeWaterproof), beeswax);
|
||||
} else {
|
||||
Proxies.log.fine("No BuildCraft pipe waterproof found.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user