Skip to content

Commit

Permalink
Remove unused methods.
Browse files Browse the repository at this point in the history
Signed-off-by: King Lemming <kinglemming@gmail.com>
  • Loading branch information
KingLemming committed Jan 2, 2018
1 parent 090be2d commit ccf809a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dependencies {
compile "mezz.jei:jei_${config.jei_mc_version}:${config.jei_version}"
}

version = "${project.config.mod_version}." + (System.getenv("BUILD_NUMBER") ?: "29")
version = "${project.config.mod_version}." + (System.getenv("BUILD_NUMBER") ?: "1")

println config.mc_version + "-" + config.forge_version
// Setup the Forge/Minecraft plugin data. Specify the preferred Forge/Minecraft version here.
Expand Down
10 changes: 6 additions & 4 deletions src/main/java/cofh/core/block/BlockCore.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
package cofh.core.block;

import net.minecraft.block.Block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;

public class BlockCore extends Block {

protected String modName;
protected String name;

public BlockCore(Material material) {
public BlockCore(Material material, String modName) {

this(material, "cofh");
super(material);
this.modName = modName;
}

public BlockCore(Material material, String modName) {
public BlockCore(Material material, MapColor blockMapColor, String modName) {

super(material);
super(material, blockMapColor);
this.modName = modName;
}

Expand Down
9 changes: 1 addition & 8 deletions src/main/java/cofh/core/block/BlockCoreTile.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@

public abstract class BlockCoreTile extends BlockCore implements ITileEntityProvider, IBlockInfo, IDismantleable, IInitializer {

public BlockCoreTile(Material material) {

super(material);

setSoundType(SoundType.STONE);
}

public BlockCoreTile(Material material, String modName) {

super(material, modName);
Expand Down Expand Up @@ -186,7 +179,7 @@ public int getComparatorInputOverride(IBlockState blockState, World world, Block
public int getLightValue(IBlockState state, IBlockAccess world, BlockPos pos) {

TileEntity tile = world.getTileEntity(pos);
return tile instanceof TileCore && tile.hasWorld() ? ((TileCore) tile).getLightValue() : 0;
return tile instanceof TileCore && tile.hasWorld() ? ((TileCore) tile).getLightValue() : super.getLightValue(state, world, pos);
}

@Override
Expand Down

0 comments on commit ccf809a

Please sign in to comment.