diff --git a/dependencies.gradle b/dependencies.gradle index 93fe5906d..24a3475a2 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -24,4 +24,7 @@ dependencies { compileOnly("TGregworks:TGregworks:1.7.10-GTNH-1.0.23:deobf") { transitive = false } compileOnly("com.github.GTNewHorizons:amunra:0.5.0:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:Galacticraft:3.0.73-GTNH:dev") { transitive = false } + + runtimeOnlyNonPublishable("curse.maven:biomes-o-plenty-220318:2499612") + runtimeOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.1.10-GTNH:dev") } diff --git a/src/main/java/com/dreammaster/gthandler/GT_CustomLoader.java b/src/main/java/com/dreammaster/gthandler/GT_CustomLoader.java index 446afe7a1..1e277a72a 100644 --- a/src/main/java/com/dreammaster/gthandler/GT_CustomLoader.java +++ b/src/main/java/com/dreammaster/gthandler/GT_CustomLoader.java @@ -7,6 +7,7 @@ import com.dreammaster.item.ItemList; import com.dreammaster.item.food.QuantumBread; +import com.dreammaster.modfixes.biomesoplenty.BlockHarvestToolFix; import com.dreammaster.modfixes.enderIO.FrankenskullFix; import cpw.mods.fml.common.registry.GameRegistry; @@ -153,6 +154,9 @@ public void run() { if (EnderIO.isModLoaded()) { FrankenskullFix.fixEnderIO(); } + if (BiomesOPlenty.isModLoaded()) { + BlockHarvestToolFix.fixBOPHarvestTools(); + } MaterialLoader.run(); FluidPipeLoader.run(); WireLoader.run(); diff --git a/src/main/java/com/dreammaster/main/MainRegistry.java b/src/main/java/com/dreammaster/main/MainRegistry.java index 72e6e7637..94fa20d48 100644 --- a/src/main/java/com/dreammaster/main/MainRegistry.java +++ b/src/main/java/com/dreammaster/main/MainRegistry.java @@ -1,13 +1,7 @@ package com.dreammaster.main; import static gregtech.api.enums.Dyes.MACHINE_METAL; -import static gregtech.api.enums.Mods.BartWorks; -import static gregtech.api.enums.Mods.GalactiGreg; -import static gregtech.api.enums.Mods.Railcraft; -import static gregtech.api.enums.Mods.Thaumcraft; -import static gregtech.api.enums.Mods.TinkerConstruct; -import static gregtech.api.enums.Mods.TwilightForest; -import static gregtech.api.enums.Mods.Witchery; +import static gregtech.api.enums.Mods.*; import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sCompressorRecipes; import static gregtech.api.util.GT_RecipeBuilder.SECONDS; diff --git a/src/main/java/com/dreammaster/modfixes/biomesoplenty/BlockHarvestToolFix.java b/src/main/java/com/dreammaster/modfixes/biomesoplenty/BlockHarvestToolFix.java new file mode 100644 index 000000000..4296277bb --- /dev/null +++ b/src/main/java/com/dreammaster/modfixes/biomesoplenty/BlockHarvestToolFix.java @@ -0,0 +1,17 @@ +package com.dreammaster.modfixes.biomesoplenty; + +import net.minecraft.block.Block; + +import cpw.mods.fml.common.registry.GameRegistry; +import gregtech.api.enums.Mods; + +public class BlockHarvestToolFix { + + public static void fixBOPHarvestTools() { + Block flesh = GameRegistry.findBlock(Mods.Names.BIOMES_O_PLENTY, "flesh"); + if (flesh != null) { + flesh.setHarvestLevel("shovel", 0); + } + } + +}