mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Scythe fixed
The scythe should be working correctly now, or at least it works on vanilla plants.
This commit is contained in:
1 parent
30ea9db349
commit
edc97ef256
1 file changed
+3
-5
@@ -38,7 +38,8 @@ public class Scythe extends Weapon
|
||||
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 };
|
||||
|
||||
@@ -179,10 +180,7 @@ public class Scythe extends Weapon
|
||||
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++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user