Skip to content

Commit

Permalink
Fix for BOP blocks not having harvest level/tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Caedis committed Oct 22, 2023
1 parent 7e3d558 commit d7d098a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
3 changes: 3 additions & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
4 changes: 4 additions & 0 deletions src/main/java/com/dreammaster/gthandler/GT_CustomLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -153,6 +154,9 @@ public void run() {
if (EnderIO.isModLoaded()) {
FrankenskullFix.fixEnderIO();
}
if (BiomesOPlenty.isModLoaded()) {
BlockHarvestToolFix.fixBOPHarvestTools();
}
MaterialLoader.run();
FluidPipeLoader.run();
WireLoader.run();
Expand Down
8 changes: 1 addition & 7 deletions src/main/java/com/dreammaster/main/MainRegistry.java
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
}

}

0 comments on commit d7d098a

Please sign in to comment.