mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Fix #1997 Actually Additions Integration
This commit is contained in:
1 parent
d43cc63367
commit
e9019fd8c3
5 files changed
+7
-12
No files matched your search
@@ -222,6 +222,7 @@ public class ModuleFarming extends BlankForestryModule {
|
||||
Circuits.farmCropsManaged = new CircuitFarmLogic("managedCrops", cropsFarm, false);
|
||||
Circuits.farmCropsManual = new CircuitFarmLogic("manualCrops", cropsFarm, true);
|
||||
cropsFarm.registerSoil(new ItemStack(Blocks.DIRT), Blocks.FARMLAND.getDefaultState());
|
||||
cocoaFarm.registerFarmables("farmWheat");
|
||||
|
||||
Circuits.farmInfernalManaged = new CircuitFarmLogic("managedInfernal", infernalFarm, false);
|
||||
Circuits.farmInfernalManual = new CircuitFarmLogic("manualInfernal", infernalFarm, true);
|
||||
|
||||
@@ -75,10 +75,8 @@ public class PluginActuallyAdditions extends CompatPlugin {
|
||||
if (seedItem != null) {
|
||||
Block plantBlock = getBlock(blockName);
|
||||
if (plantBlock != null) {
|
||||
FarmableAgingCrop crop = new FarmableAgingCrop(new ItemStack(seedItem), plantBlock, BlockCrops.AGE, 7);
|
||||
ForestryAPI.farmRegistry.registerFarmables("farmWheat", crop);
|
||||
FarmableAgingCrop cropOrchard = new FarmableAgingCrop(new ItemStack(seedItem), plantBlock, BlockCrops.AGE, 7, 0);
|
||||
ForestryAPI.farmRegistry.registerFarmables("farmOrchard", cropOrchard);
|
||||
FarmableAgingCrop crop = new FarmableAgingCrop(new ItemStack(seedItem), plantBlock, BlockCrops.AGE, 7, 0);
|
||||
ForestryAPI.farmRegistry.registerFarmables("farmCrops", crop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,8 +38,7 @@ public class PluginBetterWithMods extends CompatPlugin {
|
||||
IBlockState mature = defaultState.withProperty(AGE, 7).withProperty(TOP, false);
|
||||
IBlockState topMature = defaultState.withProperty(AGE, 7).withProperty(TOP, true);
|
||||
|
||||
farmRegistry.registerFarmables("farmWheat", new FarmableDoubleCrop(hempSeed, planted, mature, topMature, false));
|
||||
farmRegistry.registerFarmables("farmOrchard", new FarmableDoubleCrop(hempSeed, planted, mature, topMature, true));
|
||||
farmRegistry.registerFarmables("farmCrops", new FarmableDoubleCrop(hempSeed, planted, mature, topMature, true));
|
||||
|
||||
RecipeManagers.squeezerManager.addRecipe(10, hempSeed, Fluids.SEED_OIL.getFluid(seedAmount));
|
||||
}
|
||||
|
||||
@@ -162,8 +162,7 @@ public class PluginMysticalAgriculture extends CompatPlugin {
|
||||
RecipeManagers.squeezerManager.addRecipe(10, seeds, Fluids.SEED_OIL.getFluid(seedAmount));
|
||||
}
|
||||
if (seeds != null && block != null) {
|
||||
farmRegistry.registerFarmables("farmWheat", new FarmableAgingCrop(seeds, block, BlockCrops.AGE, 7));
|
||||
farmRegistry.registerFarmables("farmOrchard", new FarmableAgingCrop(seeds, block, BlockCrops.AGE, 7, 0));
|
||||
farmRegistry.registerFarmables("farmCrops", new FarmableAgingCrop(seeds, block, BlockCrops.AGE, 7, 0));
|
||||
}
|
||||
}
|
||||
for(int i = 1;i <= 5;i++){
|
||||
@@ -173,8 +172,7 @@ public class PluginMysticalAgriculture extends CompatPlugin {
|
||||
RecipeManagers.squeezerManager.addRecipe(10, seeds, Fluids.SEED_OIL.getFluid(seedAmount));
|
||||
}
|
||||
if (seeds != null && block != null) {
|
||||
farmRegistry.registerFarmables("farmWheat", new FarmableAgingCrop(seeds, block, BlockCrops.AGE, 7));
|
||||
farmRegistry.registerFarmables("farmOrchard", new FarmableAgingCrop(seeds, block, BlockCrops.AGE, 7, 0));
|
||||
farmRegistry.registerFarmables("farmCrops", new FarmableAgingCrop(seeds, block, BlockCrops.AGE, 7, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,8 +57,7 @@ public class PluginRoots extends CompatPlugin {
|
||||
RecipeManagers.squeezerManager.addRecipe(10, fruit, Fluids.JUICE.getFluid(juiceAmount));
|
||||
}
|
||||
if (seed != null && block != null) {
|
||||
farmRegistry.registerFarmables("farmWheat", new FarmableAgingCrop(seed, block, BlockCrops.AGE, 7));
|
||||
farmRegistry.registerFarmables("farmOrchard", new FarmableAgingCrop(seed, block, BlockCrops.AGE, 7, 0));
|
||||
farmRegistry.registerFarmables("farmCrops", new FarmableAgingCrop(seed, block, BlockCrops.AGE, 7, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user