-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for BOP blocks not having harvest level/tool
- Loading branch information
Showing
4 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/dreammaster/modfixes/biomesoplenty/BlockHarvestToolFix.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
|
||
} |