Skip to content

Commit

Permalink
Fixed more misc. bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bculkin2442 committed Feb 21, 2014
1 parent edc97ef commit f217267
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions resources/assets/tinker/lang/en_US.lang
Expand Up @@ -135,6 +135,8 @@ item.oreberry.essence.name=Concentrated Essence Berry
item.goldenhead.name=Golden Head
item.tconstruct.titleicon.name=Spawn

tile.tconstruct.meatblock.name=Hambone

item.InfiTool.Pickaxe.name=Pickaxe
item.InfiTool.Shovel.name=Shovel
item.InfiTool.Axe.name=Hatchet
Expand Down Expand Up @@ -385,6 +387,7 @@ block.slime.grass.dirt.name=Slimy Grass
block.slime.tallgrass.name=Slimy Grass
block.slime.congealed.blue.name=Congealed Blue Slime
block.slime.congealed.green.name=Congealed Green Slime
block.slime.congealed.purple.name=Congealed Purple Slime

item.tconstruct.storage.knapsack.name=Knapsack
item.tconstruct.blankpattern.pattern.name=Blank Pattern
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/items/tools/Mattock.java
Expand Up @@ -47,7 +47,7 @@ protected String getSecondHarvestType ()
return "shovel";
}

static Material[] axeMaterials = { Material.wood, Material.cactus };// TODO
static Material[] axeMaterials = { Material.wood, Material.cactus, Material.plants, Material.vine };// TODO
// find
// this//,
// Material.pumpkin,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/tconstruct/library/tools/DualHarvestTool.java
Expand Up @@ -31,9 +31,9 @@ public boolean onBlockStartBreak (ItemStack stack, int x, int y, int z, EntityPl
return false;
int hlvl = -1;
int shlvl = -1;
if (block.getHarvestTool(meta).equals(getHarvestType()))
if (block.getHarvestTool(meta) == null || block.getHarvestTool(meta).equals(getHarvestType()))
hlvl = block.getHarvestLevel(meta);
if (block.getHarvestTool(meta).equals(getSecondHarvestType()))
if (block.getHarvestTool(meta) == null || block.getHarvestTool(meta).equals(getSecondHarvestType()))
shlvl = block.getHarvestLevel(meta);

if (hlvl <= tags.getInteger("HarvestLevel") && shlvl <= tags.getInteger("HarvestLevel2"))
Expand Down

0 comments on commit f217267

Please sign in to comment.