Skip to content

Commit

Permalink
Scythe fixed
Browse files Browse the repository at this point in the history
The scythe should be working correctly now, or at least it works on
vanilla plants.
  • Loading branch information
bculkin2442 committed Feb 21, 2014
1 parent 30ea9db commit edc97ef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/tconstruct/items/tools/Scythe.java
Expand Up @@ -38,7 +38,8 @@ protected Material[] getEffectiveMaterials ()
return materials;
}

static Material[] materials = new Material[] { Material.web, Material.cactus };// TODO find this//, Material.pumpkin,
static Material[] materials = new Material[] { Material.web, Material.cactus, Material.plants
, Material.leaves, Material.vine };// TODO find this//, Material.pumpkin,
// Material.plants, Material.vine,
// Material.leaves };

Expand Down Expand Up @@ -179,10 +180,7 @@ public boolean onBlockStartBreak (ItemStack stack, int x, int y, int z, EntityPl
if (!cancelHarvest)
{
Block block = world.getBlock(xPos, yPos, zPos);
if (block != null)// && (block.getMaterial() ==
// Material.leaves ||
// block.isLeaves(world, xPos,
// yPos, zPos)))
if ((block != null))
{
for (int iter = 0; iter < materials.length; iter++)
{
Expand Down

0 comments on commit edc97ef

Please sign in to comment.