Implemented the config options into the RoadLines

Using a tool is disabled by default and the tool and tool harvest level can be changed in the config
This commit is contained in:
Mitchellbrine committed 2015-01-11 11:45:00 -08:00
1 parent 4fafbc7371
commit c099172e6f
1 file changed
+4 -1
@@ -9,6 +9,7 @@ import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import com.cricketcraft.chisel.client.render.BlockRoadLineRenderer;
import com.cricketcraft.chisel.config.Configurations;
public class BlockRoadLine extends Block {
@@ -19,7 +20,9 @@ public class BlockRoadLine extends Block {
public BlockRoadLine() {
super(Material.circuits);
this.setHarvestLevel("pickaxe",0);
if (Configurations.useRoadLineTool) {
this.setHarvestLevel(Configurations.getRoadLineTool,roadLineToolLevel);
}
this.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 0.00390625f, 1.0f);
// this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.0625F, 1.0F);
}