Wood and stone scythes no longer work on leaves (as originally intended). Closes #215

This commit is contained in:
Adubbz 2014-05-10 23:00:49 +10:00
parent 93815592c5
commit 5880cc4965

View file

@ -195,7 +195,6 @@ public class ItemBOPScythe extends Item
{
for (int aZ = -radius; aZ <= radius; aZ++)
{
//TODO: getBlock()
Block block = world.getBlock(x + aX, y + aY, z + aZ);
int meta = world.getBlockMetadata(x + aX, y + aY, z + aZ);
@ -228,10 +227,12 @@ public class ItemBOPScythe extends Item
{
stack.damageItem(1, entity);
}
else
{
return;
}
//TODO: dropBlockAsItem()
block.dropBlockAsItem(world, x + aX, y + aY, z + aZ, meta, 0);
//TODO: setBlockToAir()
world.setBlockToAir(x + aX, y + aY, z + aZ);
}
}