Код:
public void onBlockHarvested(World world, int x, int y, int z, int meta, EntityPlayer player)
{
if(!world.isRemote){
for(int j = y - 1; j ‹ y + 70; j++)
{
if(!(world.getBlockId(x, j, z) == Block.leaves.blockID))
{
world.destroyBlock(x, j, z, true);
}
}
}
}
Eclipse ругается наfor(int j = y - 1; j ‹ y + 70; j++):
Type mismatch: cannot convert from int to boolean
Несоответствие типа: не может конвертировать из INT в Boolean)
Как решить проблему?